:root {
  --display-font: "Fira Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #172025;
  --muted: #5b666b;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #d9ded7;
  --teal: #0b7a75;
  --blue-light: #d8e8f7;
  --blue-medium: #13477a;
  --amber: #d48b20;
  --red: #b95145;
  --blue: #003e85;
  --blue-dark: #253551;
  --shadow: 0 20px 70px rgba(23, 32, 37, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(217, 222, 215, 0.82);
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.hero-actions,
.app-card-top,
.tag-list,
.card-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--display-font);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav {
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover {
  color: var(--ink);
  background: #eef0eb;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 9vw, 110px) clamp(18px, 5vw, 72px);
  isolation: isolate;
}

.about-hero {
  min-height: 68vh;
}

.app-hero {
  min-height: 72vh;
}

.centered-content {
  justify-self: center;
  text-align: center;
}

.centered-content h1 {
  margin-right: auto;
  margin-left: auto;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.78) 44%, rgba(251, 250, 247, 0.2) 100%);
}

.hero-content,
.page-hero {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-family: var(--display-font);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: var(--display-font);
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-family: var(--display-font);
  font-size: 1.45rem;
  line-height: 1.22;
}

.hero-copy,
.page-hero p,
.intro-band p,
.feature-copy p {
  color: #364247;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.text-link {
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 25px;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  background: var(--blue-medium);
}

.button.primary:hover {
  background: var(--blue);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 32, 37, 0.18);
}

.button.small {
  min-height: 38px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  font-size: 0.9rem;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-divider {
  border-top: 1px solid var(--line);
}

.intro-band,
.product-band,
.two-column,
.contact-section,
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-band {
  grid-template-columns: minmax(0, 520px) minmax(260px, 420px);
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.compact-work-section {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  background: linear-gradient(90deg, #e8ece5 0%, #bccbd0 58%, #5f7f95 100%);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(14px, 2.5vw, 28px);
}

.compact-work-section .principles {
  justify-self: end;
  width: min(100%, 430px);
}

.section-heading {
  align-items: end;
  margin-bottom: 28px;
}

.segmented-control {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  background: #eceee8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment {
  min-height: 38px;
  padding: 7px 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}

.segment.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 6px 20px rgba(23, 32, 37, 0.08);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 37, 0.06);
}

.app-card-top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.status {
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  text-transform: capitalize;
}

.status.available {
  background: var(--teal);
}

.app-card p {
  color: var(--muted);
}

.app-title {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.app-title h3 {
  margin: 0;
}

.app-icon {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 32, 37, 0.12);
}

.app-icon.placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--amber);
  font-weight: 900;
  font-size: 1.35rem;
}

.tag-list {
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.tag-list span {
  padding: 5px 9px;
  background: #f0eee7;
  border: 1px solid #e0d9cc;
  border-radius: 999px;
  color: #4c565a;
  font-size: 0.82rem;
  font-weight: 800;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 30px;
  margin-top: 18px;
}

.app-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.detail-panel {
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(23, 32, 37, 0.06);
}

.borderless-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.engine-detail-copy > h2 {
  margin-bottom: 24px;
}

.engine-detail-copy > p {
  margin-bottom: 34px;
}

.engine-detail-copy > h3 {
  margin-top: 34px;
  margin-bottom: 18px;
}

.engine-detail-copy .detail-list {
  margin-bottom: 38px;
}

.detail-panel h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.detail-list {
  display: grid;
  gap: 14px;
  width: min(720px, 100%);
  margin: 0 auto 28px;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding: 16px;
  background: #f0eee7;
  border: 1px solid #e0d9cc;
  border-radius: 25px;
}

.app-snapshot {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.hero-app-snapshot {
  position: static;
  width: min(360px, 100%);
  margin: 30px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  justify-items: center;
}

.app-snapshot img {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  box-shadow: none;
}

.app-snapshot .summary-app-icon {
  width: min(220px, 100%);
  height: auto;
  border-radius: 34px;
  filter: drop-shadow(0 18px 28px rgba(23, 32, 37, 0.22));
}

.app-snapshot .store-badge {
  width: min(190px, 100%);
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.centered-detail,
.centered-detail .detail-panel {
  text-align: center;
}

.centered-detail .detail-list li {
  text-align: center;
}

.centered-detail .hero-actions,
.centered-detail .tag-list {
  justify-content: center;
}

.centered-detail .app-snapshot img {
  justify-self: center;
}

.faq-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.faq-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(23, 32, 37, 0.34);
}

.faq-content {
  text-align: left;
}

.faq-content h1 {
  color: var(--ink);
}

.faq-item {
  margin-top: 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  min-height: 56px;
  padding: 18px 48px 18px 0;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--teal-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
}

.app-directory {
  display: grid;
  place-items: center;
  padding-top: clamp(74px, 9vw, 120px);
  padding-bottom: clamp(74px, 9vw, 120px);
}

.app-icon-link {
  display: grid;
  gap: 18px;
  justify-items: center;
  width: min(360px, 100%);
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-icon-link:hover {
  transform: translateY(-3px);
}

.app-icon-link img {
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: none;
  filter: drop-shadow(0 22px 34px rgba(23, 32, 37, 0.18));
  animation: iconScaleIn 520ms ease-out both;
}

.app-icon-link span {
  font-family: var(--display-font);
  font-size: 1.45rem;
  font-weight: 800;
}

@keyframes iconScaleIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes phoneSlideIn {
  from {
    opacity: 0;
    transform: translateX(-36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes phoneFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes featuredIconSlideIn {
  from {
    opacity: 0;
    transform: translateX(42px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes featuredIconSlideUp {
  from {
    opacity: 0;
    transform: translateY(42px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon-link img,
  .app-hero-phone,
  .featured-app-icon {
    animation: none;
  }

  .app-icon-link,
  .featured-app-link {
    transition: none;
  }
}

.text-link {
  color: var(--teal-dark);
}

.muted {
  color: var(--muted);
}

.product-band {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  background: linear-gradient(90deg, #e8ece5 0%, #d4ddd8 48%, #9fb5bd 100%);
  grid-template-columns: minmax(0, 520px) minmax(260px, 420px);
  justify-content: center;
  align-items: center;
}

.product-band .feature-copy {
  justify-self: center;
}

.phone-demo {
  justify-self: center;
  width: min(340px, 100%);
  min-height: 620px;
  padding: 28px 18px;
  background: #11191d;
  border: 8px solid #293338;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 86px;
  height: 8px;
  margin: 0 auto 24px;
  background: #3a464c;
  border-radius: 99px;
}

.screen-card {
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #17383b 70%);
  border-radius: 8px;
}

.screen-card span,
.screen-card small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.screen-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 1.75rem;
  line-height: 1.1;
}

.service-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  color: #dce5e4;
  background: #202b30;
  border: 1px solid #334047;
  border-radius: 8px;
}

.featured-app-icon {
  width: min(360px, 100%);
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  border-radius: 42px;
  box-shadow: none;
  filter: drop-shadow(0 22px 34px rgba(23, 32, 37, 0.18));
  animation: featuredIconSlideIn 1100ms ease-out both;
}

.featured-app-link {
  justify-self: center;
  display: inline-flex;
  width: fit-content;
  max-width: min(360px, 100%);
  border-radius: 0;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.featured-app-link:hover {
  transform: translateY(-3px);
}

.page-hero {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 11vw, 130px) 0 clamp(30px, 6vw, 70px);
}

.app-page-hero {
  max-width: 1160px;
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: none;
  width: 100%;
  padding-inline: max(18px, calc((100vw - 1160px) / 2));
  background: linear-gradient(90deg, #5f7f95 0%, #bccbd0 42%, #e8ece5 100%);
}

.app-page-hero > div {
  justify-self: start;
  text-align: left;
}

.app-page-hero h1,
.app-page-hero p {
  margin-left: 0;
  margin-right: 0;
}

.app-hero-phone {
  justify-self: center;
  width: min(240px, 100%);
  height: auto;
  filter: drop-shadow(0 22px 42px rgba(23, 32, 37, 0.18));
  animation: phoneSlideIn 620ms ease-out both;
}


.two-column p {
  color: var(--muted);
}

.principles {
  display: grid;
  gap: 14px;
}

.principles div {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.principles strong,
.principles span {
  display: block;
}

.principles span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #344046;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 28px;
  color: var(--muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 820px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 10vw, 112px) 0;
}

.policy-nav {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.policy-nav button {
  display: block;
  width: 100%;
  padding: 13px 16px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.policy-nav button:hover,
.policy-nav button:focus-visible {
  color: var(--blue-dark);
  background: var(--blue-light);
  outline: none;
}

.policy-nav button.active {
  color: var(--blue-medium);
  background: #ffffff;
  outline: none;
}

.policy {
  min-width: 0;
}

.policy-panel {
  scroll-margin-top: 98px;
}

.policy-panel[hidden] {
  display: none;
}

.policy h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.policy section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.policy h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.effective-date,
.policy p {
  color: var(--muted);
}

.site-footer {
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 34px 18px;
  color: #eef6f8;
  background: var(--blue-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 18px;
    display: none;
    width: min(320px, calc(100vw - 36px));
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-overlay {
    background: rgba(251, 250, 247, 0.84);
  }

  .intro-band,
  .product-band,
  .two-column,
  .contact-section,
  .section-heading,
  .app-detail-layout,
  .faq-section,
  .app-page-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .app-page-hero > div {
    justify-self: center;
    text-align: center;
  }

  .app-page-hero h1,
  .app-page-hero p {
    margin-right: auto;
    margin-left: auto;
  }

  .app-hero-phone {
    width: min(192px, 80%);
    animation: phoneFadeIn 1100ms ease-out both;
  }

  .app-icon-link img {
    animation: phoneFadeIn 1100ms ease-out both;
  }

  .app-directory {
    justify-items: center;
    text-align: center;
  }

  .compact-work-section {
    text-align: center;
  }

  .compact-work-section .principles {
    justify-self: center;
    width: min(100%, 430px);
  }

  .featured-app-icon {
    animation-name: featuredIconSlideUp;
  }

  .app-snapshot {
    position: static;
  }

  .segmented-control {
    justify-self: stretch;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding-top: 0;
  }

  .policy-nav button {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 0.95rem;
  }

  h1 {
    font-size: clamp(2.55rem, 15vw, 4.1rem);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .segmented-control {
    grid-template-columns: 1fr;
  }

  .phone-demo {
    min-height: 540px;
  }
}
