:root { --brand: #0f4c4c; --brand-2: #1a7373; --gold: #c9a13b; --ink: #16202a; --muted: #62717d; --line: #e2e8ec; --bg: #f7f9f9; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-2); text-decoration: none; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 650; border: 0; cursor: pointer; font-size: 14px; }
.btn.big { height: 50px; padding: 0 26px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.nav { position: sticky; top: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 10; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; gap: 18px; align-items: center; }
.nav nav a:not(.btn) { color: var(--ink); font-weight: 550; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 18px; }
.mark { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: var(--gold); display: grid; place-items: center; font-weight: 800; }
.hero { background: radial-gradient(1000px 500px at 80% -10%, #e3f2f0, transparent), linear-gradient(#fff, var(--bg)); padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: #e3f2f0; color: var(--brand); padding: 5px 12px; border-radius: 999px; font-weight: 650; font-size: 13px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.02em; margin: 18px 0; }
.hero p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.hero-cta { display: flex; gap: 16px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px rgba(15,76,76,.12); }
.mock-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mock-bars { display: flex; gap: 8px; align-items: flex-end; height: 120px; margin-top: 18px; }
.mock-bars i { flex: 1; background: linear-gradient(var(--brand-2), var(--brand)); border-radius: 6px 6px 0 0; }
.mock-foot { margin-top: 14px; font-size: 13px; color: var(--brand); font-weight: 650; }
.features { padding: 70px 20px; }
h2 { font-size: 32px; letter-spacing: -.01em; margin: 0 0 26px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.band { background: var(--bg); padding: 70px 0; }
/* v2.0.99 (update 180): the plan grids are rows of fixed-width cards, CENTRED - hiding a plan / a product with fewer cards no longer leaves them on the
   left. A card is as wide as a column of the old grid (n columns: (100% - (n - 1) x gap) / n), so a full row looks exactly as before. */
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.plans > * { flex: 0 0 calc((100% - 2 * 16px) / 3); min-width: 0; box-sizing: border-box; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.plan .price { font-size: 32px; font-weight: 800; margin: 10px 0; }
.plan-features { margin: 12px 0 8px; padding-left: 18px; line-height: 1.7; }
.signup { padding: 70px 20px; }
.signup-card { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: 0 20px 50px rgba(15,76,76,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 650; }
input, select { height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: inherit; width: 100%; }
input:focus, select:focus { outline: 2px solid #e3f2f0; border-color: var(--brand-2); }
.key-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.key-input input { border: 0; border-radius: 0; }
.key-input span { padding: 0 12px; background: var(--bg); height: 42px; display: grid; place-items: center; color: var(--muted); white-space: nowrap; }
.hint { font-size: 12.5px; }
.hint.ok { color: #1f9d63; } .hint.bad { color: #d64541; }
.footer { padding: 30px 20px 50px; border-top: 1px solid var(--line); }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #16202a; color: #fff; padding: 12px 18px; border-radius: 10px; display: none; max-width: 90vw; }
#toast.error { background: #d64541; }
.success { text-align: center; }
.success .big-check { width: 64px; height: 64px; border-radius: 50%; background: #e5f6ee; color: #1f9d63; display: grid; place-items: center; margin: 0 auto 14px; font-size: 32px; }
.steps { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .plans > * { flex-basis: 100%; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 34px; }
    .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) { .feature-grid, .form-grid { grid-template-columns: 1fr; } }

.currency-switch { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; flex-wrap: wrap; }
.currency-switch button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.currency-switch button.active { background: var(--ink, #16202a); color: #fff; border-color: transparent; }
.currency-switch .small { font-size: 13px; margin-left: 6px; }

/* ---------- pricing v2 ---------- */
.wrap.wide { max-width: 1320px; }
.pricing-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: -10px 0 28px; }
#pricing h2 { text-align: center; }
.pricing-lead { margin: 0; font-size: 17px; }
.toggles { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 650; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.seg button.active { background: var(--brand); color: #fff; }
.seg button em { font-style: normal; font-size: 12px; font-weight: 750; background: #e5f6ee; color: #1f7a4f; padding: 2px 8px; border-radius: 999px; }
.seg button.active em { background: var(--gold); color: #16202a; }
.small { font-size: 13px; }
.plans.five { align-items: stretch; gap: 14px; }
.plans.five > * { flex-basis: calc((100% - 4 * 14px) / 5); }
.plans.five .plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px; transition: transform .15s, box-shadow .15s; }
.plans.five .plan:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15,76,76,.10); }
.plan h3 { margin: 0; font-size: 19px; }
.plan-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; min-height: 40px; margin-top: 6px; }
.plans.five .price { font-size: 28px; font-weight: 800; margin: 16px 0 2px; letter-spacing: -.01em; white-space: nowrap; }
.plans.five .price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.price-sub { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.plan-limits { display: flex; flex-direction: column; gap: 4px; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 650; font-size: 14px; }
.plan-cta { width: 100%; }
.plan-trial { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; min-height: 16px; }
.plan-mods { list-style: none; padding: 0; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.plan-mods li { padding: 4px 0 4px 24px; position: relative; }
.plan-mods li::before { content: "✓"; position: absolute; left: 0; top: 4px; color: #1f9d63; font-weight: 800; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 24px 50px rgba(15,76,76,.18); background: linear-gradient(#f2faf8, #fff 140px); transform: translateY(-8px); }
.plans.five .plan.featured:hover { transform: translateY(-11px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #16202a; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 14px rgba(201,161,59,.35); }
.sub-h { font-size: 26px; margin: 60px 0 18px; text-align: center; }
.compare-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; font-size: 14px; }
.compare th, .compare td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: #fff; font-size: 15px; vertical-align: bottom; }
.compare .feat { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; font-weight: 600; min-width: 200px; box-shadow: 1px 0 0 var(--line); }
.compare thead .feat { z-index: 2; color: var(--muted); font-size: 13px; font-weight: 650; }
.compare .th-price { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.compare .th-badge { display: table; margin-left: auto !important; margin-right: auto !important; background: var(--gold); color: #16202a; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin: 4px 0 2px; }
.compare th.featured, .compare td.featured { background: #f2faf8; }
.compare th.featured { border-top: 3px solid var(--brand); }
.compare tr.grp td { text-align: left; background: var(--bg); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 14px; }
.compare .grp-l { position: sticky; left: 14px; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .ck { color: #1f9d63; font-weight: 800; font-size: 16px; }
.compare .dash { color: #b7c1c8; }
.compare .txt { font-weight: 600; font-size: 13px; }
.compare-hint { display: none; text-align: center; margin-top: 8px; }
.addons { margin-top: 60px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.addons-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.addons-head .sub-h { text-align: left; }
.addon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.addon-grid > * { flex: 0 0 calc((100% - 4 * 12px) / 5); min-width: 0; box-sizing: border-box; }
.addon { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.addon-i { font-size: 22px; }
.contact { padding: 70px 20px 0; }
.contact-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr; gap: 30px; border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; width: 100%; resize: vertical; }
@media (max-width: 1180px) { .plans.five > * { flex-basis: calc((100% - 2 * 14px) / 3); } .plan.featured { transform: none; } .plans.five .plan.featured:hover { transform: translateY(-3px); } .addon-grid > * { flex-basis: calc((100% - 2 * 12px) / 3); } }
@media (max-width: 900px) { .plans.five > * { flex-basis: calc((100% - 14px) / 2); } .compare-hint { display: block; } .contact-card { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
    .plans.five { gap: 22px; }
    .plans.five > * { flex-basis: 100%; }
    .addon-grid > * { flex-basis: calc((100% - 12px) / 2); }
    .addons { padding: 20px 16px; }
    .compare { min-width: 720px; font-size: 13px; }
    .compare .feat { min-width: 140px; max-width: 150px; }
    .compare th, .compare td { padding: 10px 8px; }
    .sub-h { font-size: 22px; }
}
.plan-mods li.lead { padding-left: 0; font-weight: 700; }
.plan-mods li.lead::before { content: none; }

/* ---------- branding + FAQ (update 28) ---------- */
.logo-img { height: 36px; max-width: 200px; object-fit: contain; display: block; }
[hidden] { display: none !important; }
.faq { padding: 70px 20px 0; max-width: 900px; }
.faq h2 { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 18px; transition: box-shadow .15s; }
.faq-item[open] { box-shadow: 0 10px 26px rgba(15,76,76,.08); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; font-weight: 500; color: var(--brand-2); transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 16px; color: var(--muted); line-height: 1.6; }
@media (max-width: 620px) { .faq { padding-top: 50px; } .faq-item summary { font-size: 15px; } }

/* ---------- legal pages (update 29) ---------- */
.legal { max-width: 860px; padding: 50px 20px 60px; }
.legal-doc h1 { font-size: 36px; letter-spacing: -.01em; margin: 10px 0 4px; }
.legal-body { margin-top: 26px; line-height: 1.7; font-size: 16px; color: #2c3a45; }
.legal-body h2 { font-size: 20px; margin: 30px 0 8px; }
.legal-body h3 { font-size: 17px; margin: 20px 0 6px; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin: 4px 0; }
.legal-note { background: #fff8e6; border: 1px solid #f0dca6; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.legal-note a { font-weight: 650; margin-left: 4px; }
.legal-history { margin-top: 30px; font-size: 14px; color: var(--muted); }
.legal-links { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; font-size: 14px; }
.check input { width: auto; height: auto; margin-top: 3px; }
.terms-check { line-height: 1.5; }
.consent-checks { display: grid; gap: 6px; }
.consent-checks .check { font-weight: 400; }
/* ---------- API documentation (/developers, update 38) ---------- */
.legal.dev { max-width: 1240px; }
.dev-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.dev-toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; max-height: calc(100vh - 100px); overflow: auto; }
.dev-toc b { margin-bottom: 6px; }
.dev-toc a { color: var(--ink); padding: 4px 10px; border-radius: 6px; }
.dev-toc a:hover { background: var(--bg); }
.dev-toc-foot { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.dev-toc-foot a { color: var(--brand-2); font-weight: 650; }
.dev-doc { min-width: 0; line-height: 1.65; font-size: 15.5px; color: #2c3a45; }
.dev-doc section { padding-top: 12px; margin-bottom: 26px; scroll-margin-top: 80px; }
.dev-doc h1 { font-size: 38px; margin: 4px 0 10px; color: var(--ink); }
.dev-doc h2 { font-size: 24px; margin: 10px 0 10px; color: var(--ink); border-top: 1px solid var(--line); padding-top: 22px; }
.dev-doc h4 { margin: 8px 0 4px; font-size: 16px; color: var(--ink); }
.dev-kicker { color: var(--brand-2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.dev-doc code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.dev-code { position: relative; margin: 10px 0 14px; }
.dev-code pre { background: #0f1c24; color: #e3edf2; border-radius: 10px; padding: 14px 16px; overflow: auto; font-size: 13px; line-height: 1.55; margin: 0; }
.dev-code pre code { background: none; border: 0; padding: 0; color: inherit; }
.dev-copy { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; font-size: 12px; padding: 3px 9px; cursor: pointer; }
.dev-ep { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 14px 0; scroll-margin-top: 80px; }
.dev-ep-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dev-ep-head code { font-size: 14px; font-weight: 650; }
.dev-m { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 8px; color: #fff; }
.dev-get { background: #1f9d63; } .dev-post { background: #2f6fdb; } .dev-patch { background: #d9880f; } .dev-delete { background: #d64541; }
.dev-scope { margin-left: auto; font-size: 12px; color: var(--muted); }
.dev-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-top: 10px; letter-spacing: .04em; }
.dev-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.dev-table th, .dev-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 7px 8px; vertical-align: top; }
.dev-table th { font-size: 12px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .dev-layout { grid-template-columns: 1fr; } .dev-toc { position: static; max-height: none; } .dev-table { display: block; overflow-x: auto; } }

/* Google reCAPTCHA v3 notice under protected forms (update 67) */
.captcha-note { margin: 4px 0 0; font-size: 12px; }
.captcha-note a { color: inherit; text-decoration: underline; }

/* v2.0.10 (update 94): "Get the app" (the Tiara One Admin app) - buttons + QR on a computer, only the buttons (the phone's own store first) on a phone */
.get-app { padding: 70px 20px 0; }
.get-app-card { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 30px 36px;
    background: radial-gradient(600px 300px at 100% 0%, #e3f2f0, transparent), #fff; }
.get-app h2 { margin: 12px 0 10px; }
.get-app-name { margin: 0 0 4px; font-size: 17px; }
.get-app-text p.muted { margin: 0 0 18px; line-height: 1.6; }
.get-app-qr { text-align: center; }
.get-app-qr .store-qr { width: 200px; height: 200px; margin: 0 auto 8px; }
.small { font-size: 13px; }
@media (max-width: 700px) { .get-app-card { grid-template-columns: 1fr; padding: 24px 20px; } .get-app-qr { display: none; } .get-app { padding-top: 50px; } }

/* v2.0.15 (update 99): promo code price line on the plan cards */
.promo-price { margin: 6px 0 2px; padding: 6px 8px; border-radius: 8px; background: #fff7e0; color: #7a5a00; font-size: 13px; font-weight: 600; line-height: 1.35; }

/* v2.0.16 (update 100): referral invite banner on the signup form, the referral / promo choice line */
.referral-banner { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #e3f2f0; color: var(--brand); border: 1px solid #c7e3de; line-height: 1.45; }
.referral-banner .small { font-size: 13px; color: var(--ink); margin-top: 4px; }
.hint.promo-choice { color: var(--brand); font-weight: 600; margin-top: 2px; }
