/* SahiForm — the site around the app: pricing, contact and the legal pages (the front page carries its own styles). The same brand as
   the app (styles.css): white, grape ink, cream panels, tangerine, lime and pink with a hard grape shadow,
   Righteous for display and Nunito for the rest. Phone first; the wide layouts arrive at 700px and 960px. */
:root {
  --bg: #ffffff; --cream: #fff3e2; --line: #e9d6bf; --ink: #2b1546; --muted: #6b5a82; --grape: #2b1546;
  --pink: #ff2e88; --tangerine: #ffb830; --lime: #b8f542; --good: #2e9e5b;
  --r: 18px; --shadow: 3px 3px 0 var(--grape);
  --font-display: 'Righteous', 'Nunito', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Nunito', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1100px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .wave, .pulse { animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font-body); -webkit-text-size-adjust: 100%; }
a { color: var(--pink); font-weight: 800; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
.hl { font-style: normal; background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 .08em; }
.hl.pink { background: linear-gradient(transparent 58%, rgba(255,46,136,.45) 58%); }
.muted { color: var(--muted); }
.tiny { font-size: .85rem; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--grape); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px;
  border: 2px solid var(--grape); background: #fff; color: var(--grape); font: 900 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn:hover { background: var(--cream); }
.btn.primary { background: var(--grape); color: #fff; }
.btn.primary:hover { background: #3a1d5e; }
.btn.big { min-height: 58px; padding: 0 26px; font-size: 1.1rem; box-shadow: 3px 3px 0 var(--grape); }
.btn.big.primary { box-shadow: 3px 3px 0 var(--pink); }
.btn.big:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--grape); }
.btn.big.primary:active { box-shadow: 1px 1px 0 var(--pink); }
.btn.lime { background: var(--lime); }
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* ---- the bar: the stripes, the mark, a few links, the app ---- */
.site-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.site-top::before { content: ''; display: block; height: 9px; background: linear-gradient(to bottom, var(--tangerine) 0 3px, var(--lime) 3px 6px, var(--pink) 6px 9px); }
.site-top .wrap { display: flex; align-items: center; gap: 10px 18px; min-height: 64px; }
.wordmark { font: 400 1.5rem/1 var(--font-display); color: var(--grape); text-decoration: none; letter-spacing: -.01em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px 20px; }
.site-nav a:not(.btn) { color: var(--grape); text-decoration: none; font-weight: 800; padding: 8px 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--lime); }
.site-nav .btn { min-height: 42px; padding: 0 22px; }
@media (max-width: 699px) { .site-nav a.hide-s { display: none; } }

/* ---- sections ---- */
.sec { padding-top: 44px; padding-bottom: 44px; }   /* top and bottom only: a .wrap.sec keeps its gutter */
.sec h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; margin-bottom: 10px; }
.sec .sub { color: var(--muted); font-weight: 600; max-width: 62ch; font-size: 1.05rem; }
.sec .sub + * { margin-top: 26px; }
@media (min-width: 900px) { .sec { padding-top: 64px; padding-bottom: 64px; } }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { position: relative; background: var(--cream); border: 2px solid var(--grape); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card h3 { font: 400 1.35rem/1.15 var(--font-display); margin: 12px 0 8px; }
.card p { color: var(--muted); font-weight: 600; font-size: .98rem; }
.card .ic { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--tangerine); color: var(--grape); border: 2px solid var(--grape); }
.card .ic svg { width: 30px; height: 30px; }
.cards > :nth-child(3n+2) .ic { background: var(--lime); }
.cards > :nth-child(3n+3) .ic { background: var(--pink); color: #fff; }
.card.white { background: #fff; }

/* plans */
.plans { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: stretch; }
.plan { position: relative; border: 2px solid var(--grape); border-radius: var(--r); padding: 26px 24px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.plan.pro { background: var(--grape); color: #fff; box-shadow: 3px 3px 0 var(--pink); }
.plan .name { font: 400 1.3rem/1 var(--font-display); }
.plan .price { font: 400 clamp(2.4rem, 5vw, 3rem)/1 var(--font-display); }
.plan .price small { font: 800 1rem var(--font-body); color: var(--muted); }
.plan.pro .price small { color: rgba(255,255,255,.75); }
.plan .alt { font-weight: 700; color: var(--muted); font-size: .95rem; }
.plan.pro .alt { color: rgba(255,255,255,.8); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-weight: 600; font-size: .98rem; }
.plan li::before { content: '✓'; color: var(--good); font-weight: 900; }
.plan.pro li::before { color: var(--lime); }
.plan li.no::before { content: '–'; color: var(--muted); }
.plan li.no { color: var(--muted); }
.plan.pro li.no { color: rgba(255,255,255,.6); }
.plan .btn { align-self: stretch; }
.plan.pro .btn { background: var(--lime); border-color: var(--lime); color: var(--grape); }
.plan .tag { position: absolute; top: -14px; right: 18px; background: var(--tangerine); color: var(--grape); border: 2px solid var(--grape); border-radius: 999px; padding: 4px 12px; font: 900 .75rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.plan .fine { font-size: .85rem; color: var(--muted); font-weight: 600; }
.plan.pro .fine { color: rgba(255,255,255,.75); }
.toggle { display: inline-flex; border: 2px solid var(--grape); border-radius: 999px; padding: 3px; background: #fff; margin: 18px 0 24px; }
.toggle button { border: 0; background: transparent; color: var(--grape); font: 900 .95rem var(--font-body); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--grape); color: #fff; }
.toggle .save { color: var(--good); font-size: .8rem; margin-left: 4px; }
.toggle button[aria-pressed="true"] .save { color: var(--lime); }

/* the plans' rows: the same labels in both cards, so they read across */
.plan .rows { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-direction: column; flex: 1; }
.plan .rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .98rem; line-height: 1.35; }
.plan .rows li:last-child { border-bottom: 0; }
.plan .rows li::before { content: none; }   /* the tick of the plain list, not wanted on a row */
.plan .rows .k { font-weight: 600; color: var(--muted); }
.plan .rows .k .d { display: block; font-size: .82rem; font-weight: 600; color: var(--muted); opacity: .8; }
.plan .rows .v { font-weight: 900; text-align: right; flex: none; max-width: 48%; }
.plan .rows .v.no { color: #d93025; font-weight: 900; }
.plan.pro .rows li { border-color: rgba(255,255,255,.18); }
.plan.pro .rows .k, .plan.pro .rows .k .d { color: rgba(255,255,255,.8); }
.plan.pro .rows .v.no { color: #ff6b6b; }
.plan .btn { align-self: stretch; margin-top: 6px; }
/* a comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 12px 10px; border-bottom: 2px solid var(--line); vertical-align: top; }
.compare th { font-weight: 900; }
.compare thead th { font: 400 1.1rem var(--font-display); border-bottom: 2px solid var(--grape); }
.compare td.y { color: var(--good); font-weight: 900; } .compare td.n { color: var(--muted); }
.compare .d { display: block; font-size: .86rem; color: var(--muted); font-weight: 600; }
@media (max-width: 699px) { .compare thead th:first-child { width: 44%; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 2px solid var(--line); border-radius: 14px; background: #fff; padding: 0 18px; }
.faq details[open] { border-color: var(--grape); }
.faq summary { cursor: pointer; font-weight: 900; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 900 1.3rem/1 var(--font-body); color: var(--pink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 16px; color: var(--muted); font-weight: 600; }

/* the foot */
.site-foot { background: var(--cream); border-top: 2px solid var(--grape); margin-top: 48px; padding: 36px 0 28px; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { font: 900 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot-grid a { color: var(--grape); text-decoration: none; font-weight: 800; }
.foot-grid a:hover { text-decoration: underline; }
.foot-grid .about { color: var(--muted); font-weight: 600; font-size: .95rem; max-width: 36ch; margin-top: 10px; }
.foot-line { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* ---- a page of text: pricing's notes, the legal page, contact ---- */
.page-head { padding-top: 40px; padding-bottom: 10px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; }
.page-head .meta { margin-top: 10px; color: var(--muted); font-weight: 700; }
.doc { display: grid; gap: 28px; padding-bottom: 20px; }
@media (min-width: 960px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; } .toc { position: sticky; top: 96px; align-self: start; } }
.toc { border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.toc h4 { font: 900 .75rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .92rem; }
.toc a { color: var(--grape); text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }
.prose { max-width: 72ch; }
.prose h2 { font: 400 1.5rem/1.2 var(--font-display); margin: 34px 0 10px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 900 1.05rem/1.3 var(--font-body); margin: 20px 0 6px; scroll-margin-top: 96px; }
.prose h2 + .lead { margin-bottom: 14px; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { margin-bottom: 6px; }
.prose .lead { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); vertical-align: top; }
.prose th { font-weight: 900; background: var(--cream); }
.prose .box { border: 2px solid var(--grape); border-radius: 14px; padding: 16px 18px; background: var(--cream); margin: 14px 0 18px; }
.prose .box p:last-child { margin-bottom: 0; }
.prose .note { border-left: 6px solid var(--tangerine); background: rgba(255,184,48,.14); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 14px 0; }
mark.tbd { background: var(--tangerine); color: var(--grape); padding: 1px 7px; border-radius: 6px; font-weight: 900; }
.summary-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 16px 0 24px; }
.summary-grid .s { border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.summary-grid .s b { display: block; margin-bottom: 4px; }
.summary-grid .s p { margin: 0; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* contact */
.contact-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 20px 0 30px; }
.contact-grid .c { border: 2px solid var(--grape); border-radius: var(--r); padding: 20px; background: var(--cream); box-shadow: var(--shadow); }
.contact-grid .c h3 { font: 400 1.2rem/1.2 var(--font-display); margin-bottom: 6px; }
.contact-grid .c p { color: var(--muted); font-weight: 600; font-size: .95rem; }
.contact-grid .c a { word-break: break-all; }
.form { display: grid; gap: 12px; max-width: 560px; }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: .9rem; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 11px 12px; border: 2px solid var(--line); border-radius: 12px; font: 600 1rem var(--font-body); color: var(--ink); background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--grape); outline: none; }
.form textarea { min-height: 120px; resize: vertical; }
