/* Othonas · site styles. Mobile first; one breakpoint at 900px.
   Colours and type come from the Othonas brand kit (tokens.json). */

@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/fira-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/fira-sans-medium.woff2") format("woff2"); }
@font-face { font-family: "Fira Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/fira-sans-semibold.woff2") format("woff2"); }

:root {
  --paper: #F6F4EE;
  --surface: #FFFFFF;
  --line: #DAD6CB;
  --ink: #1B2240;
  --ink-soft: #3B4466;
  --ink-muted: #626C93;
  --primary: #2C3763;
  --on-primary: #F6F4EE;
  --on-primary-soft: #D2D6E4;
  --on-primary-muted: #B9BED5;
  --accent: #BE3B2D;
  --on-accent: #FFFFFF;
  --accent-on-primary: #DE7D73;
  --night: #1B2240;
  --night-line: #3A426E;
  --night-muted: #A3A9C6;
  --night-accent: #E37A6E;
  --error: #A3301F;
  --font: "Fira Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --header-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must win over any display a class sets (.form is flex), or a
   hidden element stays on screen while the script believes it is gone. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: var(--primary); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: var(--on-primary); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--primary); color: var(--on-primary); padding: 10px 14px; border-radius: var(--radius-md); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
.section { padding-block: 48px; }
.on-dark { background: var(--primary); color: var(--on-primary); }
.night { background: var(--night); color: var(--on-primary); }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.on-dark .eyebrow { color: var(--accent-on-primary); }
.h2 { font-size: 32px; line-height: 38px; }
.lead { font-size: 17px; line-height: 27px; color: var(--ink-soft); }
.section-tight { padding-top: 8px; }
.h2-gap { margin-top: 8px; }
.h2-form { font-size: 34px; line-height: 40px; }
.on-dark .lead { color: var(--on-primary-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: var(--radius-md); border: 0; font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: background-color .15s ease, transform .1s ease; }
.btn:active { transform: scale(.98); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #A3301F; color: var(--on-accent); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--ink); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--on-primary); border: 1.5px solid var(--on-primary-muted); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:active { transform: none; } }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 238, .94); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.site-header .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.logo { display: flex; align-items: center; }

/* hero */
.hero { position: relative; overflow: hidden; padding-block: 36px 44px; }
.hero-arcs { position: absolute; right: -170px; top: -120px; width: 520px; height: 520px; opacity: .12; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { border: 1px solid var(--on-primary-muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.hero h1 { font-size: 46px; line-height: 50px; letter-spacing: -.01em; }
.pen-under { position: relative; display: inline-block; }
.pen-under svg { position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-cta .btn { width: 100%; max-width: 360px; }
.hero-cta small { font-size: 14px; color: var(--on-primary-muted); }

/* hero entrance: the copy rises in, then the red pen "writes" its underline.
   Only when the visitor has not asked for less motion; otherwise everything is
   simply there. CSS only, no library. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .pen-under path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: write .7s cubic-bezier(.6, 0, .3, 1) .55s forwards; }
  .phone { animation: rise .8s cubic-bezier(.2, .7, .2, 1) .2s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes write { to { stroke-dashoffset: 0; } }

/* phone mockups */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 250px; height: 500px; border-radius: 40px; background: #11152A; padding: 10px; position: relative; box-shadow: 0 30px 60px rgba(10, 14, 35, .45); }
.phone::before { content: ""; position: absolute; left: 50%; top: 18px; width: 70px; height: 18px; margin-left: -35px; border-radius: 10px; background: #11152A; z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 31px; background: #FFFFFF; overflow: hidden; color: #2B2B2B; display: flex; flex-direction: column; }
.screen-bar { padding: 44px 16px 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; }
.screen-lang { font-size: 11px; font-weight: 400; background: #F1F1F1; border-radius: 999px; padding: 4px 10px; }
.screen-photo { height: 170px; background: #CFD8DC; display: flex; align-items: center; justify-content: center; color: #5E6E77; font-size: 12px; }
.screen-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.screen-title { font-weight: 600; font-size: 17px; line-height: 21px; }
.screen-meta { font-size: 12px; color: #555; }
.screen-btn { border-radius: 10px; text-align: center; padding: 12px; font-size: 14px; font-weight: 600; background: #2B2B2B; color: #FFFFFF; }
.screen-btn.outline { background: transparent; color: #2B2B2B; border: 1.5px solid #2B2B2B; font-weight: 400; padding: 10px; }

/* diagnosis */
.diag { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.diag-copy { display: flex; flex-direction: column; gap: 14px; }
.faults { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.faults li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 26px; }
.num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin: 0; }
.compare figure { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.compare figcaption { font-size: 14px; font-weight: 600; order: -1; }
.mini { width: 100%; max-width: 160px; aspect-ratio: 9 / 18; border-radius: 22px; background: var(--night); padding: 6px; position: relative; }
.mini-screen { width: 100%; height: 100%; border-radius: 17px; background: #FFFFFF; overflow: hidden; display: flex; flex-direction: column; }
.mini-old { gap: 4px; padding: 18px 6px 6px; }
.mini-old .bar { height: 9px; background: #7A8C3A; }
.mini-old .row { display: flex; gap: 4px; }
.mini-old .img { width: 45%; height: 34px; background: #CFD8DC; }
.mini-old .lines { flex-grow: 1; display: flex; flex-direction: column; gap: 3px; }
.mini-old .lines i { display: block; height: 2px; background: #999; }
.mini-old .lines i:nth-child(4) { width: 70%; }
.mini-old .lines i:nth-child(5) { width: 80%; background: #2C6FD6; }
.mini-old .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.mini-old .grid i { display: block; height: 22px; background: #E0E4E6; }
.mini-old .tiny-btn { margin-top: auto; align-self: flex-end; width: 34%; height: 8px; background: #DDDDDD; }
.mini-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-new .top { padding: 18px 8px 6px; display: flex; justify-content: space-between; align-items: center; font-size: 9px; font-weight: 600; color: #2B2B2B; }
.mini-new .top span { font-size: 7px; font-weight: 400; background: #F1F1F1; border-radius: 999px; padding: 2px 5px; }
.mini-new .img { height: 70px; background: #CFD8DC; }
.mini-new .body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mini-new .body i { display: block; border-radius: 2px; }
.mini-new .t { height: 6px; width: 80%; background: #2B2B2B; }
.mini-new .m { height: 4px; width: 55%; background: #9AA0A6; }
.mini-new .b { height: 20px; background: #2B2B2B; border-radius: 6px !important; }
.mini-new .o { height: 20px; border: 1.5px solid #2B2B2B; border-radius: 6px !important; }

/* services bento */
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 20px; line-height: 26px; }
.card p { font-size: 15px; line-height: 23px; color: var(--ink-soft); }
.card.big { padding: 24px; gap: 12px; min-height: 210px; }
.card.big h3 { font-size: 24px; line-height: 30px; }
.card.big p { font-size: 16px; line-height: 25px; }
.card.ink { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.card.ink p { color: var(--on-primary-soft); }
.icon { width: 32px; height: 32px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card.big .icon { width: 36px; height: 36px; }
.icon .i-main { stroke: var(--primary); }
.icon .i-pen { stroke: var(--accent); }
.card.ink .icon .i-main { stroke: var(--on-primary); }
.card.ink .icon .i-pen { stroke: var(--accent-on-primary); }

/* process */
.night .h-big { font-size: 40px; line-height: 44px; }
.night .h-big span { color: var(--night-accent); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.steps li { border: 1px solid var(--night-line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps .k { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--night-accent); }
.steps .t { font-size: 20px; font-weight: 600; }
.steps .d { font-size: 15px; line-height: 23px; color: var(--night-muted); }

/* offer + why */
.offer-why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; gap: 18px; align-items: center; }
.offer-copy { display: flex; flex-direction: column; gap: 8px; flex-grow: 1; min-width: 0; }
.offer-copy strong { font-size: 26px; line-height: 31px; font-weight: 600; }
.offer-copy p { font-size: 15px; line-height: 23px; color: var(--ink-soft); }
.badge { flex: none; width: 112px; height: 112px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; position: relative; text-decoration: none; }
.badge .ring { position: absolute; inset: 0; width: 112px; height: 112px; animation: spin 18s linear infinite; }
.badge:hover .ring { animation-duration: 6s; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .badge .ring { animation: none; } }
.why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.why li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 25px; }
.why svg { flex: none; width: 26px; height: 26px; margin-top: 2px; }
.why b { font-weight: 600; }

/* faq */
.faq { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; font-size: 16px; line-height: 25px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }

/* form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 22px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input:not([type="checkbox"]) { min-height: 52px; border: 1.5px solid #9AA0B8; border-radius: var(--radius-md); padding: 0 14px; font: 400 17px/1.2 var(--font); background: #FFFFFF; color: var(--ink); width: 100%; }
.field input:not([type="checkbox"]):focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.hint { font-size: 14px; line-height: 20px; color: var(--ink-muted); margin-top: -2px; }
.optional { font-weight: 400; color: var(--ink-muted); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px !important; line-height: 21px; font-weight: 400 !important; color: var(--ink-soft); cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.form-status { font-size: 15px; color: var(--ink-soft); }
.form-status[hidden], .form-errors[hidden] { display: none; }
.form-errors { margin: 0; padding: 12px 14px 12px 32px; border-radius: var(--radius-md); background: #F7E3E0; color: var(--error); font-size: 14px; line-height: 21px; }
.field-error { display: flex; gap: 6px; align-items: center; font-size: 14px; color: var(--error); }
.field-error[hidden] { display: none; }
.field-error svg { flex: none; }
.form .btn { width: 100%; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.privacy { font-size: 13px; line-height: 19px; color: var(--ink-muted); }
.done { display: flex; flex-direction: column; gap: 12px; padding-block: 8px; }
.done[hidden] { display: none; }
.done strong { font-size: 24px; line-height: 30px; font-weight: 600; }
.done p { font-size: 16px; line-height: 25px; color: var(--ink-soft); }

/* footer */
.site-footer { background: var(--night); color: var(--night-muted); padding-block: 36px 96px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; }
.site-footer address { font-style: normal; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 22px; }
.site-footer a { color: var(--on-primary); }
.site-footer small { font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 15px; }

/* inner pages: a module's list, an entry, the privacy policy */
.narrow { max-width: 760px; }
.page-title { font-size: 34px; line-height: 40px; margin-bottom: 20px; }
.rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; font-size: 17px; font-weight: 600; text-decoration: none; color: var(--ink); }
.rows a:hover { border-color: var(--primary); }
.rows svg { flex: none; color: var(--accent); }
.prose { font-size: 17px; line-height: 28px; color: var(--ink-soft); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 24px; line-height: 30px; color: var(--ink); margin-top: 32px; }
.prose h3 { font-size: 19px; line-height: 26px; color: var(--ink); margin-top: 24px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary); text-underline-offset: 2px; }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); }
.prose figure { margin: 24px 0; }
.prose img { border-radius: var(--radius-md); height: auto; }

/* sticky mobile CTA */
.sticky-cta { position: sticky; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: center; background: rgba(27, 34, 64, .96); padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.sticky-cta .btn { min-height: 50px; font-size: 16px; }
.sticky-cta .grow { flex-grow: 1; }
.sticky-cta .square { flex: none; width: 50px; padding: 0; }

@media (min-width: 900px) {
  .wrap { padding-inline: 40px; }
  .section { padding-block: 72px; }
  .hero { padding-block: 64px 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 48px; }
  .hero h1 { font-size: 72px; line-height: 74px; }
  .page-title { font-size: 44px; line-height: 50px; margin-bottom: 28px; }
  .diag, .form-grid, .offer-why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-2 { grid-column: span 2; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sticky-cta { display: none; }
  .site-footer { padding-block: 48px; }
}

/* cookie question: a card at the bottom, above the mobile CTA bar.
   Both buttons share one style - refusing is as easy as accepting. */
.consent { position: fixed; z-index: 40; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(27, 34, 64, .22); }
.consent-title { font-size: 16px; font-weight: 600; }
.consent-text { font-size: 14px; line-height: 21px; color: var(--ink-soft); }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-choice { min-height: 46px; font-size: 16px; background: var(--primary); color: var(--on-primary); }
.btn-choice:hover { background: var(--ink); color: var(--on-primary); }
.link-button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--on-primary); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }
@media (min-width: 900px) {
  .consent { left: 24px; right: auto; bottom: 24px; max-width: 420px; }
}
