/* Sendora public site — no framework, system fonts, mobile first. */
:root {
  --ink: #0F1B2D; --ink-2: #33415C; --muted: #5B6679; --paper: #FAF8F5; --card: #FFFFFF;
  --line: #E6E1D9; --accent: #E8590C; --accent-ink: #B8440A; --teal: #0B7A75; --soft: #FFF1E8;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,27,45,.06), 0 8px 24px rgba(15,27,45,.06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw + .5rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.5vw + .6rem, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,248,245,.92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.3rem var(--serif); color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: none; gap: 1.6rem; margin-left: 1rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.header-actions { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.menu-toggle { display: inline-flex; margin-left: .25rem; }
.menu-toggle summary { list-style: none; cursor: pointer; padding: .5rem; border-radius: 8px; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle[open] .mobile-nav { display: grid; }
.mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.5rem; gap: .25rem; }
.mobile-nav a { padding: .7rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .site-nav { display: flex; } .menu-toggle { display: none; } }
.hide-sm { display: none; }
@media (min-width: 600px) { .hide-sm { display: inline-flex; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .72rem 1.2rem; border-radius: 999px; font: 600 .95rem var(--sans); text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; transform: translateY(-1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero .container { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: 1.05fr .95fr; } }
.eyebrow { display: inline-block; font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 36rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.8rem 0 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(15,27,45,.14)); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 6rem) 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--accent-ink); margin-bottom: 1rem; }
.feature h3 { font-size: 1.2rem; }
.feature p { color: var(--muted); margin: 0; }
.steps { counter-reset: step; }
.step { position: relative; padding-left: 3.4rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.band { background: var(--ink); color: #F5EFE6; border-radius: 24px; padding: clamp(2rem, 6vw, 4rem); display: grid; gap: 1.5rem; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #C9D1DE; }
@media (min-width: 900px) { .band { grid-template-columns: 1.4fr auto; } }

/* Pricing */
.billing-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .3rem; margin-bottom: 2rem; }
.billing-toggle label { padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem; }
#cycle-monthly:checked ~ .billing-toggle label[for="cycle-monthly"], #cycle-yearly:checked ~ .billing-toggle label[for="cycle-yearly"] { background: var(--ink); color: #fff; }
#cycle-monthly:focus-visible ~ .billing-toggle label[for="cycle-monthly"], #cycle-yearly:focus-visible ~ .billing-toggle label[for="cycle-yearly"] { outline: 3px solid var(--accent); }
.price-yearly { display: none; }
#cycle-yearly:checked ~ .plans .price-yearly { display: block; }
#cycle-yearly:checked ~ .plans .price-monthly { display: none; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); position: relative; }
.plan .badge { position: absolute; top: -.8rem; left: 1.6rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.plan .amount { font: 700 2.6rem var(--serif); }
.plan .per { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .55rem; }
.plan li { padding-left: 1.6rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: .9rem; height: .5rem; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq details p { margin: .7rem 0 0; color: var(--ink-2); }

/* Blog */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--soft), #E7F3F2); object-fit: cover; width: 100%; }
.post-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.post-card h3 { font-size: 1.25rem; margin: 0; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.meta { color: var(--muted); font-size: .88rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.meta a { color: var(--muted); }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.page-head { padding: 3rem 0 1.5rem; }
.page-head p { color: var(--muted); font-size: 1.15rem; max-width: 40rem; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.8rem; }
.prose img { border-radius: 12px; margin: 1.5rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; border-left: 4px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose pre { background: var(--ink); color: #F5EFE6; padding: 1rem; border-radius: 10px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; }
.featured-img { border-radius: 18px; margin: 1.5rem 0 2rem; width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2rem 0; }
.tags a { border: 1px solid var(--line); background: var(--card); padding: .3rem .8rem; border-radius: 999px; font-size: .88rem; color: var(--ink-2); text-decoration: none; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: inline-block; min-width: 2.6rem; text-align: center; padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.pagination [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Forms (auth) */
.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-card { width: min(440px, 100%); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #CFC8BD; border-radius: 10px; background: #fff; }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(232,89,12,.25); }
.check { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-ok { background: #E4F4F1; color: #0B5B57; }
.alert-err { background: #FDECEA; color: #8A2317; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D1DE; padding: 3.5rem 0 2rem; margin-top: 4rem; font-size: .95rem; }
.site-footer a { color: #F5EFE6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid #25344D; margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer .brand { color: #fff; }
