/* Sonotexta site — "Paper" design. Shared by index, privacy and terms. */

:root {
  color-scheme: light;
  --paper: #F7F3EA;
  --paper-2: #EFE8DA;
  --card: #FFFDF8;
  --ink: #1F2330;
  --ink-2: #4A4F5E;
  --ink-3: #5F6370;          /* darkened from the draft's #7B7F8C so small text passes AA on paper */
  --rule: #E2D9C7;
  --wash: #C9DBEE;
  --brand: #4B32C9;
  --brand-ink: #3A26A6;
  --coral: #DE6B4F;          /* decorative fills */
  --coral-deep: #B5442A;     /* text and badge fills: AA on paper and with white text */
  --sage: #7FA37A;
  --shadow: 4px 5px 0 rgba(31, 35, 48, .12);
  --shadow-soft: 4px 5px 0 rgba(31, 35, 48, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(31, 35, 48, .035) 1px, transparent 1px);
  background-size: 3px 3px;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
section[id], [id].anchor { scroll-margin-top: 16px; }

/* accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
           clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 20; background: var(--ink); color: var(--paper);
        padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .coffee:focus-visible, .menu summary:focus-visible { border-radius: 999px; }
.oss :focus-visible { outline-color: #FFDD00; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font: 600 20px Fraunces, Georgia, serif; text-decoration: none; min-height: 44px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.navlinks { display: flex; gap: 8px; font-size: 15px; color: var(--ink-2); margin-left: auto; margin-right: 12px; }
.navlinks a { text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.navlinks a:hover { color: var(--ink); background: rgba(255, 253, 248, .8); }

/* mobile menu (details/summary, no JS needed to open) */
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
                padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 999px; font: 600 15px Inter, sans-serif; background: transparent; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-2px) rotate(45deg); }
.menu[open] summary { background: var(--card); }
.menu[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% - 6px); z-index: 10; min-width: 220px; display: grid; gap: 2px; padding: 10px;
              background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: var(--shadow); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-size: 16px; }
.menu-panel a:hover { background: var(--paper); }
.menu-panel .sep { height: 1px; background: var(--rule); margin: 6px 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 22px; border-radius: 999px;
       font: 600 16px/1.3 Inter, sans-serif; text-decoration: none; transition: transform .15s, box-shadow .15s, background-color .15s; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31, 35, 48, .18); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--card); }
.btn small { font-weight: 400; font-size: 14px; opacity: .78; }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 14px; }

/* hero: centred text, wide animation stage underneath */
.hero { text-align: center; padding: 40px 0 88px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2);
       background: var(--card); border: 1px solid var(--rule); padding: 6px 14px 6px 8px; border-radius: 999px; }
.tag b { background: var(--coral-deep); color: #fff; font-weight: 600; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; margin: 22px auto 20px; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--brand); padding-right: .06em; }
.hero p.lead { font-size: 20px; color: var(--ink-2); max-width: 36ch; margin: 0 auto 32px; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .ctas { justify-content: center; }
.meta { margin: 18px 0 0; font-size: 14px; color: var(--ink-3); }

/* the stage: slot for the hand-drawn canvas animation (#hero-animation) */
.stage { position: relative; margin: 56px 0 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden;
         border: 1.5px solid var(--ink); box-shadow: 6px 7px 0 rgba(31, 35, 48, .12);
         background:
           radial-gradient(60% 80% at 14% 22%, rgba(201, 219, 238, .75), transparent 72%),
           radial-gradient(52% 72% at 88% 84%, rgba(242, 214, 196, .8), transparent 72%),
           var(--card); }
.stage > img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.stage > img[hidden] { display: none; }
.stage > canvas, .stage > svg, .stage > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* sections */
section { padding: 84px 0; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); font-weight: 600; margin-bottom: 12px; }
h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; max-width: 18ch; text-wrap: balance; }
.rule { border: 0; border-top: 1.5px solid var(--ink); margin: 0; opacity: .9; }
section.tight { padding-top: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 44px 0 0; padding: 0; list-style: none; }
.step { background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-soft); }
.step .n { font: 600 40px Fraunces, Georgia, serif; color: var(--brand); line-height: 1; }
.step h3 { font-size: 22px; margin: 14px 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.panel { border-radius: 20px; padding: 30px; border: 1.5px solid var(--ink); background: var(--card); }
.panel.wash { background: linear-gradient(160deg, #E4EEF8, var(--card) 70%); }
.panel h3 { font-size: 24px; margin-bottom: 6px; }
.panel p { color: var(--ink-2); margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1.5px solid var(--ink); }
.feature { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--rule); }
.feature:not(:nth-child(3n)) { border-right: 1px solid var(--rule); }
.feature:not(:nth-child(3n+1)) { padding-left: 26px; }
.feature h3 { font-size: 20px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* what's new strip */
.strip { display: grid; grid-template-columns: 1fr 2.2fr; gap: 40px; align-items: start; background: var(--card); border: 1.5px solid var(--ink);
         border-radius: 24px; padding: 40px; box-shadow: var(--shadow); }
.strip h2 { font-size: clamp(28px, 3.2vw, 38px); }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.strip li { position: relative; padding-left: 36px; color: var(--ink-2); font-size: 15.5px; }
.strip li strong { display: block; color: var(--ink); font-weight: 600; font-size: 16.5px; margin-bottom: 2px; }
.strip li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--sage); border: 1.5px solid var(--ink); }
.strip li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 6px; height: 11px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(40deg); }

.oss { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.oss h2 { color: var(--paper); }
.oss .eyebrow { color: #F2A58F; }
.oss p { color: #C9CCD6; margin: 16px 0 0; }
.oss .btn-primary { background: var(--paper); color: var(--ink); }
.oss .btn-ghost { border-color: var(--paper); color: var(--paper); }
.oss .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.coffee { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; background: #FFDD00; color: #1F2330; font-weight: 600; padding: 12px 22px; border-radius: 999px; text-decoration: none; transition: transform .15s; }
.coffee:hover { transform: translateY(-1px); }
.oss .side { display: grid; gap: 12px; justify-items: start; }
.fine { font-size: 14px; color: #B3B7C4; }
.fine a { color: #fff; }

footer { padding: 40px 0 56px; font-size: 14px; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
footer a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* legal pages */
.doc { max-width: 720px; margin: 0 auto; padding: 24px 0 72px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.05; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin: 12px 0 36px; }
.doc h2 { font-size: 26px; line-height: 1.2; max-width: none; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16.5px; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--brand-ink); text-underline-offset: 3px; }
.doc a:hover { color: var(--brand); }
.doc .callout { background: var(--card); border: 1.5px solid var(--ink); border-radius: 18px; padding: 22px 24px; margin: 0 0 8px; box-shadow: var(--shadow-soft); }
.doc .callout p { margin: 0; color: var(--ink); }
.doc .callout p + p { margin-top: 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.doc th { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--ink); }

@media (max-width: 1000px) {
  .strip { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .split, .oss { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr; }
  .feature, .feature:not(:nth-child(3n+1)) { padding: 22px 0; }
  .feature:not(:nth-child(3n)) { border-right: 0; }
  .navlinks, .nav > .nav-gh { display: none; }
  .menu { display: block; }
  .oss { padding: 32px; }
  .strip ul { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero { padding-bottom: 64px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { padding: 14px 0; }
  .hero { padding-top: 28px; }
  .hero p.lead { font-size: 18px; }
  .hero .ctas { flex-direction: column; align-items: stretch; max-width: 360px; margin: 0 auto; }
  .stage { margin-top: 40px; border-radius: 20px; box-shadow: 4px 5px 0 rgba(31, 35, 48, .12); }
  /* phones: frame in on the laptop so the overlay stays legible */
  .stage { aspect-ratio: 4 / 3; }
  .stage > video { object-fit: cover; object-position: 50% 32%; transform: scale(1.18); transform-origin: 50% 36%; }
  .oss { padding: 28px 22px; border-radius: 24px; }
  .oss .ctas { flex-direction: column; align-items: stretch; }
  .oss .side { justify-items: stretch; }
  .strip { padding: 28px 22px; border-radius: 20px; }
  .panel { padding: 24px 20px; }
  .step { padding: 22px; }
  .doc { padding-top: 8px; }
  footer { flex-direction: column; align-items: flex-start; }
  footer a { padding: 0 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn-primary:hover, .coffee:hover { transform: none; }
}

/* contact */
.contact { padding: 72px 0 24px; scroll-margin-top: 24px; }
.contact p { font-size: 19px; color: var(--ink-2); max-width: 56ch; margin: 16px 0 0; }
.contact p a { color: var(--brand); text-underline-offset: 3px; }
h2[id] { scroll-margin-top: 24px; }
