/* ZeeTill marketing site.
   Palette is taken from the product itself, not invented: #C0453D is kMainColor /
   kAuthAccentColor in the merchant app (Screen/Widgets/Constant Data/constant.dart)
   and #2E2E3E is kTitleColor. The previous site used a purple (#8424FF) that
   appeared nowhere in the app or the logo. */

:root {
  --brand: #c0453d;
  --brand-dark: #9e332c;
  --brand-soft: #fdf1f0;
  --accent: #3f8f5b;
  --accent-soft: #eef7f1;

  --title: #2e2e3e;
  --body: #5b5b6a;
  --muted: #8a8a99;
  --line: #e9e6e4;
  --surface: #ffffff;
  --surface-alt: #faf8f7;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(46, 46, 62, .06), 0 2px 8px rgba(46, 46, 62, .04);
  --shadow: 0 4px 12px rgba(46, 46, 62, .07), 0 12px 32px rgba(46, 46, 62, .06);
  --shadow-brand: 0 10px 30px rgba(192, 69, 61, .22);

  --wrap: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--title); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 6.5rem) 0; }
.section--alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.center { text-align: center; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-soft);
  padding: .4rem .85rem; border-radius: 100px; margin-bottom: 1rem;
}
.lede { font-size: 1.1rem; color: var(--body); max-width: 60ch; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: .8rem 1.6rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--title); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; }
.nav__logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--title); font-size: 1.15rem; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a { color: var(--body); font-weight: 500; font-size: .95rem; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav__toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  padding: .45rem .6rem; cursor: pointer; color: var(--title);
}

/* Hero */
.hero { padding: clamp(3rem, 2rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 4.5rem);
  background: radial-gradient(1100px 420px at 78% -12%, var(--brand-soft), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.75rem; color: var(--muted); font-size: .9rem; }
.hero__trust span { display: flex; align-items: center; gap: .4rem; }
.hero__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 1.5rem; display: grid; gap: 1rem;
}
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stat {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .9rem 1rem;
}
.stat__label { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 1.45rem; font-weight: 700; color: var(--title); }
.stat__value--accent { color: var(--accent); }
.bar-chart { display: flex; align-items: flex-end; gap: .45rem; height: 110px; padding-top: .5rem; }
.bar-chart span { flex: 1; background: linear-gradient(180deg, var(--brand), #e07a73); border-radius: 6px 6px 0 0; }

/* Cards */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ded9d7; }
.card__icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 1rem; font-size: 1.15rem;
}
.card p:last-child { margin-bottom: 0; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 3rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--brand);
}

/* Pricing */
.pricing-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm);
}
.plan--featured { border-color: var(--brand); box-shadow: var(--shadow-brand); }
.plan__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; padding: .32rem .85rem; border-radius: 100px;
}
.plan__name { font-size: 1.2rem; font-weight: 700; color: var(--title); }
.plan__price { display: flex; align-items: baseline; gap: .4rem; margin: .7rem 0 .2rem; flex-wrap: wrap; }
.plan__amount { font-size: 2.3rem; font-weight: 800; color: var(--title); letter-spacing: -.02em; }
.plan__period { color: var(--muted); font-size: .92rem; }
.plan__was { color: var(--muted); text-decoration: line-through; font-size: 1rem; }
.plan__save {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 100px; margin-bottom: .9rem;
}
.plan__features { display: grid; gap: .6rem; margin: 1.1rem 0 1.6rem; font-size: .95rem; }
.plan__features li { display: flex; gap: .55rem; align-items: flex-start; }
.plan__features svg { flex: 0 0 auto; margin-top: .3rem; color: var(--accent); }
.plan .btn { margin-top: auto; width: 100%; }

/* Async states for the plan feed */
.plans-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.plans-state[hidden] { display: none; }
.skeleton { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.skeleton__card { height: 380px; border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface-alt) 30%, #f2efed 50%, var(--surface-alt) 70%);
  background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -220% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton__card { animation: none; } }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 780px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.35rem;
}
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--title); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: .85rem 0 0; }

/* CTA banner */
.cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 1.5rem + 3vw, 3.5rem);
  text-align: center; color: #fff;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .9); max-width: 55ch; margin-inline: auto; }
.cta .btn--primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta .btn--primary:hover { background: #fff; color: var(--brand-dark); }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta .btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-weight: 600; color: var(--title); font-size: .92rem; }
.field input, .field textarea {
  font: inherit; color: var(--title); padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface); width: 100%;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.contact-list li { display: flex; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: none; }

/* Footer */
.site-footer { background: var(--title); color: #c9c7d2; padding: 3.5rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #c9c7d2; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .55rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem;
}

/* Focus visibility for keyboard users */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(192, 69, 61, .45); outline-offset: 2px; border-radius: 6px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .contact-grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none; position: absolute; inset: 100% 0 auto; background: var(--surface);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    gap: 0; padding: .5rem 1.25rem 1rem;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .site-header { position: relative; }
  .grid--3, .grid--4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav__actions .btn--ghost { display: none; }
}
