/* Shared styles for the public pages: home, sign-in, owner dashboard and policies. */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #f5f7fa; --ink: #161d2b; --muted: #596476; --line: #d7dce4;
  --accent: #24408e; --accent-ink: #ffffff; --accent-soft: #e4e9f6;
  --good: #1d7a4c; --good-soft: #e2f2e9; --warn: #965800; --warn-soft: #fbeed6; --bad: #b42318; --bad-soft: #fbe4e1;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 12px; --shadow: 0 1px 2px rgba(20,30,50,.06), 0 8px 24px rgba(20,30,50,.08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e131b; --surface: #161d28; --surface-2: #1b2330; --ink: #e7ebf1; --muted: #9aa5b5; --line: #2b3545;
    --accent: #93aaff; --accent-ink: #0d1330; --accent-soft: #202b4c;
    --good: #5cc994; --good-soft: #163628; --warn: #f2b552; --warn-soft: #3a2c12; --bad: #ff8a7c; --bad-soft: #401e1b;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.28);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
/* The hidden attribute must always win over display: rules such as .btn, .tabs and .field. */
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -.015em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* header and footer */
.site-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-name em { font-style: italic; color: var(--accent); }
@media (max-width: 480px) { .brand-name { font-size: 15px; line-height: 1.15; white-space: normal; } }  /* show the whole name on phones */
@media (max-width: 359px) { .site-head .wrap { padding: 0 12px; gap: 8px; } .brand { gap: 8px; } .brand-name { font-size: 14px; } .head-links { gap: 0; } .head-links .btn--sm { padding: 4px 8px; font-size: 13px; } }
.head-links { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
@media (max-width: 560px) { .head-links .hide-sm { display: none; } }
.site-foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.site-foot a { color: inherit; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn--lg { min-height: 50px; padding: 12px 22px; font-size: 16px; border-radius: 11px; }
.btn--sm { min-height: 32px; padding: 4px 12px; font-size: 14px; }
.btn--danger { color: var(--bad); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* home */
.hero { padding: 64px 0 36px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 60px); }
.hero h1 em { color: var(--accent); }
.lead { font-size: 18.5px; color: var(--muted); margin-top: 18px; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cta-note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(20,30,50,.18); overflow: hidden; background: #fff; aspect-ratio: 1100 / 1240; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.section { padding: 56px 0 8px; }
.section h2 { font-size: clamp(28px, 4.6vw, 40px); }
.section .intro { color: var(--muted); margin-top: 10px; max-width: 44em; font-size: 17px; }
.grid { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.steps { counter-reset: step; }
.steps .card h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 600 14px var(--font-body); vertical-align: 3px; }
.plans { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 760px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px 22px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); }
.plan--best { border: 2px solid var(--accent); }
.plan-tag { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.plan h3 { font-size: 24px; }
.plan-price { font-size: 36px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.plan-price small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan p { color: var(--muted); font-size: 15px; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--good); font-weight: 600; }
.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 780px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--muted); }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--accent-soft); font-size: 15px; }
.notice--warn { background: var(--warn-soft); }
.notice--bad { background: var(--bad-soft); }
.notice--good { background: var(--good-soft); }

/* forms */
.auth { max-width: 420px; margin: 48px auto; padding: 0 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px 22px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.panel h1 { font-size: 30px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.tabs button { border: 0; background: transparent; border-radius: 7px; padding: 8px; font-weight: 500; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
label.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
label.field input, label.field select { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font-size: 16px; font-weight: 400; }
label.field input:focus, label.field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.hint { font-size: 13.5px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; font-size: 14px; }

/* owner dashboard */
.admin { max-width: 980px; margin: 0 auto; padding: 28px 16px 64px; display: grid; gap: 22px; }
.admin h1 { font-size: clamp(30px, 5vw, 40px); }
.admin h2 { font-size: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checks .ok, .checks .no, .checks .opt { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.checks .ok { background: var(--good-soft); color: var(--good); }
.checks .no { background: var(--bad-soft); color: var(--bad); }
.checks .opt { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.checks small { display: block; color: var(--muted); font-size: 13.5px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--muted); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.cols { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* policies */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 20px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal h2 { font-size: 24px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal .key-points { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 16px 18px; margin: 18px 0; display: grid; gap: 10px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.agree[hidden] { display: none; }
.agree input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.agree a { color: var(--accent); }
