:root {
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #ffffff;
  color: #111111;
  font-family: "Inter", Arial, sans-serif;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

body.is-keyboard-user a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

.timphoo-hero-shell {
    position: relative;
    z-index: 10;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 28px;
    align-items: end;
    max-width: 1240px;
    width: calc(100% - 96px);
    margin: 0 auto;
    padding: 12px 0 56px;
  }

  .timphoo-hero-copy {
    padding: 0 0 18px;
  }

  .timphoo-hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .timphoo-hero-collage {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 460px;
    padding: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 235, 0.96));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  }

  .timphoo-hero-collage svg {
    width: 100%;
    max-width: 540px;
    height: auto;
    display: block;
  }

  @media (max-width: 900px) {
    .timphoo-hero-shell {
      grid-template-columns: 1fr;
      width: calc(100% - 48px);
      padding-bottom: 40px;
    }

    .timphoo-hero-collage {
      min-height: auto;
      padding: 20px;
    }

    .timphoo-hero-actions a {
      width: 100%;
      text-align: center;
    }
  }

  @media (max-width: 640px) {
    .timphoo-hero-shell {
      width: calc(100% - 32px);
      gap: 20px;
    }
  }

@media (max-width: 980px) {
  section[id="platform"] > div:first-child,
  section[style*="background:#F4F4F0"] > div[style*="grid-template-columns:repeat(3,1fr)"],
  section[id="features"] div[style*="grid-template-columns:80px 1fr 2fr"],
  section[id="careers"] div[style*="grid-template-columns:80px 1fr 2fr"],
  section[style*="background:#FEF3C7"] > div[style*="grid-template-columns:1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  section[id="platform"] > div:nth-of-type(2) {
    grid-template-columns: 1fr !important;
  }

  nav,
  footer {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  nav > div,
  footer > div {
    gap: 16px !important;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  nav {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 18px;
  }

  nav > div {
    align-items: flex-start !important;
    flex-direction: column;
  }

  section[id="features"] div[style*="display:flex;justify-content:space-between"],
  section[id="careers"] div[style*="display:flex;justify-content:space-between"] {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 12px;
  }

  footer {
    align-items: flex-start !important;
    flex-direction: column;
    gap: 18px;
  }
}

.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.apply-modal[hidden] {
  display: none;
}

.apply-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
}

.apply-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.apply-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  font-family: inherit;
}

.apply-modal__eyebrow {
  font-size: 11px;
  color: #888;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.apply-modal__title {
  margin: 0 0 12px;
  color: #0a0a0a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.apply-modal__subtitle {
  margin: 0 0 28px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.apply-modal__form {
  display: grid;
  gap: 16px;
}

.apply-modal__field {
  display: grid;
  gap: 8px;
}

.apply-modal__field span {
  font-size: 11px;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.apply-modal__field span em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: #aaa;
  font-weight: 400;
}

.apply-modal__field input,
.apply-modal__field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #0a0a0a;
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 0;
  outline: none;
}

.apply-modal__field input:focus,
.apply-modal__field textarea:focus {
  border-color: #2563eb;
}

.apply-modal__field textarea {
  resize: vertical;
  min-height: 84px;
}

.apply-modal__submit {
  margin-top: 8px;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  font-family: inherit;
}

.apply-modal__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.apply-modal__status {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.apply-modal__status--error {
  color: #b91c1c;
}

.apply-modal__success {
  display: grid;
  gap: 20px;
}

.apply-modal__success[hidden] {
  display: none;
}

.apply-modal__success p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

.apply-modal__form[hidden] {
  display: none;
}

body.apply-modal-open {
  overflow: hidden;
}

body.is-keyboard-user .apply-modal__close:focus-visible,
body.is-keyboard-user .apply-modal__submit:focus-visible,
body.is-keyboard-user .apply-modal__field input:focus-visible,
body.is-keyboard-user .apply-modal__field textarea:focus-visible,
body.is-keyboard-user button[data-open-apply]:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .apply-modal__dialog {
    padding: 28px 20px 24px;
  }

  .apply-modal__title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
