/* ==========================================================================
   Neat! — site stylesheet
   Palette mirrors the app (Theme.swift): sage #4F6B44, cream #F7F2E6.
   No external fonts, no CSS framework: one request, no third-party calls.
   ========================================================================== */

:root {
  --sage:          #4F6B44;
  --sage-hover:    #405838;
  --sage-light:    #8FAD7E;
  --sage-tint:     #E8EFE3;
  --cream:         #F7F2E6;
  --cream-deep:    #F0E9D8;
  --surface:       #FFFFFF;
  --ink:           #27302340;
  --text:          #262E22;
  --text-soft:     #5C6656;
  --text-faint:    #7C866F;
  --line:          #E2DDCC;
  --red:           #D9503D;
  --orange:        #F5A947;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(39, 48, 35, .06), 0 2px 8px rgba(39, 48, 35, .04);
  --shadow:    0 2px 6px rgba(39, 48, 35, .06), 0 12px 32px rgba(39, 48, 35, .08);
  --shadow-lg: 0 8px 24px rgba(39, 48, 35, .10), 0 32px 64px rgba(39, 48, 35, .12);

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sage:       #9DBB8F;
    --sage-hover: #B2CCA5;
    --sage-light: #6E9260;
    --sage-tint:  #23301D;
    --cream:      #17170F;
    --cream-deep: #201F16;
    --surface:    #1F1F1B;
    --text:       #F0EDE3;
    --text-soft:  #B7B3A5;
    --text-faint: #918D80;
    --line:       #33322A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow:    0 2px 6px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, .4), 0 32px 64px rgba(0, 0, 0, .45);
  }
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.0625rem; font-weight: 700; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--sage); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--sage-hover); }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
  border-radius: 6px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sage);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .75rem;
}

.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--text-soft); }

.tint { background: var(--cream-deep); }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header::after { content: ""; }
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--cream); }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand:hover { color: var(--text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.6vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  padding: .4rem .2rem;
  border-radius: 6px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--sage); }

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--text-faint);
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .3rem .6rem;
}
.nav-lang:hover { color: var(--sage); border-color: var(--sage); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--sage);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--sage-hover); color: #fff; box-shadow: var(--shadow); }
@media (prefers-color-scheme: dark) {
  .btn--primary { color: #16210F; }
  .btn--primary:hover { color: #16210F; }
}

.btn--ghost {
  background: transparent;
  color: var(--sage);
  border-color: color-mix(in srgb, var(--sage) 40%, transparent);
}
.btn--ghost:hover { background: var(--sage-tint); color: var(--sage); }

.btn--sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  align-items: center;
}

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 34rem; height: 34rem;
  top: -14rem; right: -10rem;
  background: color-mix(in srgb, var(--sage-light) 35%, transparent);
}
.hero::after {
  width: 26rem; height: 26rem;
  bottom: -12rem; left: -10rem;
  background: color-mix(in srgb, #D1E6F5 45%, transparent);
}
@media (prefers-color-scheme: dark) {
  .hero::before { background: color-mix(in srgb, var(--sage-light) 22%, transparent); }
  .hero::after  { background: color-mix(in srgb, #2A4256 40%, transparent); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 34rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--sage);
  font-size: .8125rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.badge .dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--sage-light);
  flex: none;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  font-size: .9rem;
  color: var(--text-soft);
  font-weight: 600;
}
.trust li { display: flex; align-items: center; gap: .4rem; }
.trust svg { width: 1.05em; height: 1.05em; color: var(--sage); flex: none; }

/* -------------------------------------------------------- phone frame -- */

.phone {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2E2E2E, #111);
  box-shadow: var(--shadow-lg);
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}
.phone img {
  width: 100%;
  border-radius: 35px;
  display: block;
}
.phone--lg { width: min(330px, 80vw); }

/* Widget shot: already carries its own rounded card + backdrop, so no phone frame. */
.widget-shot {
  width: min(420px, 100%);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.phone-stack {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-stack .phone:first-child { transform: translateX(-7%); }
.phone-stack .phone:last-child {
  position: absolute;
  left: 63%;
  top: 17%;
  width: min(186px, 42vw);
  border-radius: 30px;
  padding: 6px;
  transform: rotate(5deg);
}
.phone-stack .phone:last-child img { border-radius: 25px; }
@media (max-width: 760px) {
  .phone-stack .phone:first-child { transform: none; }
  .phone-stack .phone:last-child { display: none; }
}

/* -------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sage-tint);
  color: var(--sage);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-soft); font-size: .975rem; }

/* --------------------------------------------------- feature showcase -- */

.feature {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 880px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--flip .feature-media { order: -1; }
}
.feature-body { max-width: 34rem; }
.feature-body h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.feature-body p { color: var(--text-soft); }

.tick-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}
.tick-list li {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  font-size: .975rem;
  color: var(--text-soft);
}
.tick-list svg {
  width: 1.25rem; height: 1.25rem;
  color: var(--sage);
  flex: none;
  margin-top: .15rem;
}

/* --------------------------------------------------------------- steps -- */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #16210F; } }
.steps h3 { font-size: 1.15rem; }
.steps p { color: var(--text-soft); font-size: .975rem; margin: 0; }

/* --------------------------------------------------------------- spec -- */

.spec {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: .975rem;
}
.spec th, .spec td { padding: .95rem 1.25rem; text-align: left; }
.spec th { width: 42%; font-weight: 700; color: var(--text); }
.spec td { color: var(--text-soft); }
.spec tr + tr { border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------------------- faq -- */

.faq { display: grid; gap: .75rem; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3rem 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1.0625rem;
  position: relative;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 1.35rem;
  top: 1.6rem;
  width: .6rem; height: .6rem;
  border-right: 2.5px solid var(--sage);
  border-bottom: 2.5px solid var(--sage);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.85rem; }
.faq summary:hover { color: var(--sage); }
.faq .faq-body {
  padding: 0 1.35rem 1.35rem;
  color: var(--text-soft);
  font-size: .9875rem;
}

/* ---------------------------------------------------------------- cta -- */

.cta-panel {
  background: var(--sage);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .12;
}
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, .88); max-width: 34rem; margin-inline: auto; }
.cta-panel .btn--primary {
  background: #fff;
  color: var(--sage);
}
.cta-panel .btn--primary:hover { background: #F1F5EE; color: var(--sage); }
.cta-panel .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-panel .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cta-fine { font-size: .875rem; color: rgba(255, 255, 255, .8); margin-top: 1.25rem; }

@media (prefers-color-scheme: dark) {
  .cta-panel { background: #2F4227; }
  .cta-panel .btn--primary { background: var(--sage); color: #16210F; }
}

/* --------------------------------------------------------------- page -- */

.page-hero {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 42rem; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .875rem;
  color: var(--text-faint);
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--sage); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }

/* legal / long-form copy */
.prose { max-width: 46rem; }
.prose h2 {
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  margin-top: 2.5rem;
}
.prose h3 { font-size: 1.125rem; margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; color: var(--text-soft); }
.prose li { margin-bottom: .45rem; }
.prose p { color: var(--text-soft); }
.prose > p:first-of-type { color: var(--text); }
.prose a { font-weight: 600; }

.callout {
  background: var(--sage-tint);
  border: 1px solid color-mix(in srgb, var(--sage) 25%, transparent);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  margin: 1.75rem 0;
}
.callout p { color: var(--text); margin-bottom: .5em; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--sage); }

.meta { font-size: .875rem; color: var(--text-faint); }

/* ------------------------------------------------------------- contact -- */

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.15fr .85fr; }
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: .4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .75rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--sage);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 20%, transparent);
}
.field-hint { font-size: .8125rem; color: var(--text-faint); margin-top: .35rem; }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .35em; }
.contact-card p { color: var(--text-soft); font-size: .95rem; }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  margin-top: clamp(2rem, 6vw, 4rem);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  margin-bottom: 2.5rem;
}
.footer-about { max-width: 20rem; }
.footer-about p {
  font-size: .9rem;
  color: var(--text-soft);
  margin-top: .9rem;
}
.site-footer h4 {
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: .9375rem;
}
.site-footer a:hover { color: var(--sage); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  color: var(--text-faint);
}

/* ------------------------------------------------------------ utility -- */

.center { text-align: center; }
.mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
