/* DEBOB2 marketing site — built on the "warm paper notebook" system (DESIGN.md).
   Canvas #f6f5f4, white hairline cards, one blue action, accent panels, 200ms motion. */
:root {
  --color-notion-blue: #0075de; --color-paper-warmth: #f6f5f4; --color-pure-white: #ffffff;
  --color-ink-black: #000000; --color-charcoal: #111111; --color-stone: #757575; --color-graphite: #615d59;
  --color-slate: #696969; --color-sky-tint: #e6f3fe; --color-marigold: #ffb110; --color-coral: #f64932;
  --color-saffron: #e89d01; --color-vermillion: #e32d14; --color-mocha: #b18164; --color-signal-blue: #097fe8;
  --color-sky-wash: #62aef0; --color-midnight-ink: #02093a; --color-peach: #f6d5b8;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --text-caption: 12px; --text-body-sm: 14px; --text-body: 16px; --text-subheading: 20px; --text-heading-sm: 22px;
  --text-heading: 40px; --text-heading-lg: 48px; --text-display-sm: 54px; --text-display: 72px; --text-display-lg: 96px;
  --radius-small: 4px; --radius-buttons: 8px; --radius-cards: 12px; --radius-pills: 9999px;
  --border: rgba(0, 0, 0, 0.08); --page-max-width: 1440px; --content-width: 1180px; --section-gap: 80px; --card-padding: 24px;
  --shadow-nav: 0px 0.7px 1.462px 0px rgba(0,0,0,.015), 0px 3px 9px 0px rgba(0,0,0,.03);
  --shadow-mockup: 0px 4px 12px rgba(0, 0, 0, 0.1);
  --ease: 200ms ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-paper-warmth); color: var(--color-ink-black); font-family: var(--font-sans);
  font-size: var(--text-body); line-height: 1.5; font-feature-settings: "lnum"; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--color-notion-blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { inset-inline-start: 8px; }

/* ── layout ── */
.wrap { width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 0 24px; }
main#main .section { padding: var(--section-gap) 0; }
main#main .section + .section { padding-top: 0; }
main#main .grid { display: grid; gap: 16px; }
main#main .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
main#main .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
main#main .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
main#main .stack { display: flex; flex-direction: column; gap: 16px; }
main#main .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
main#main .center { text-align: center; }
main#main .muted { color: rgba(0,0,0,.6); }
.graphite { color: var(--color-graphite); }

/* ── type ── */
.display { font-size: clamp(42px, 6.5vw, 72px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 500; }
.display-sm { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; }
.heading-lg { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.heading { font-size: clamp(26px, 3vw, 40px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; }
.heading-sm { font-size: var(--text-heading-sm); line-height: 1.27; letter-spacing: -0.011em; font-weight: 700; }
.subheading { font-size: var(--text-subheading); line-height: 1.3; font-weight: 500; }
.lede { font-family: var(--font-serif); font-size: 18px; line-height: 1.56; color: var(--color-graphite); }
.lede-lg { font-family: var(--font-serif); font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; color: var(--color-ink-black); }
.caption { font-size: var(--text-caption); line-height: 1.33; letter-spacing: 0.01em; }
.body-sm { font-size: var(--text-body-sm); line-height: 1.43; }
.prose { max-width: 720px; }
.prose p + p, .prose p + h2, .prose h2 + p, .prose h3 + p, .prose p + h3, .prose ul + p, .prose p + ul, .prose ol + p, .prose p + ol { margin-top: 16px; }
.prose h2 { font-size: 30px; letter-spacing: -0.02em; font-weight: 600; margin-top: 40px; line-height: 1.2; }
.prose h3 { font-size: 22px; letter-spacing: -0.011em; font-weight: 700; margin-top: 28px; }
.prose p, .prose li { color: var(--color-graphite); }
.prose strong { color: var(--color-ink-black); }
.prose a { color: var(--color-notion-blue); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-inline-start: 22px; } .prose li + li { margin-top: 6px; }
.prose blockquote { margin: 24px 0; padding: 16px 20px; border-inline-start: 3px solid var(--color-marigold); background: #fff; border-radius: 12px; font-family: var(--font-serif); font-size: 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 16px 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-weight: 600; background: var(--color-paper-warmth); }
.prose img { border-radius: 12px; border: 1px solid var(--border); margin: 20px 0; }

/* ── nav ── */
.nav { position: sticky; top: 0; z-index: 50; height: 64px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); box-shadow: var(--shadow-nav); transition: box-shadow .25s ease, background .25s ease; }
.nav.scrolled { background: rgba(255,255,255,.94); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.btn-primary { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn:active { transform: translateY(1px); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; margin-right: 12px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav-link { white-space: nowrap; color: rgba(0,0,0,.54); padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; transition: color var(--ease), background var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: #000; }
.nav-link[aria-current="page"] { background: var(--color-paper-warmth); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-actions .btn, .brand { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1260px) { .nav-link { padding: 12px 10px; } }
.nav-toggle { all: unset; display: none; cursor: pointer; padding: 10px; border-radius: 8px; }
.nav-toggle svg { display: block; }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-buttons);
  font-size: 14px; font-weight: 500; cursor: pointer; border: 0; white-space: nowrap; transition: background var(--ease), color var(--ease), transform var(--ease); }
.btn-primary { background: var(--color-notion-blue); color: #fff; }
.btn-primary:hover { background: #0068c7; }
.btn-ghost { background: var(--color-sky-tint); color: var(--color-notion-blue); }
.btn-ghost:hover { background: #d7ebfd; }
.btn-text { background: transparent; color: rgba(0,0,0,.95); }
.btn-text:hover { background: rgba(0,0,0,.05); }
.btn-outline { background: transparent; color: rgba(0,0,0,.9); border: 1px solid rgba(0,0,0,.9); border-radius: 4px; height: 32px; padding: 0 10px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-white { background: #fff; color: #000; }
.btn-white:hover { background: #f1f1f1; }

/* ── pills & marks ── */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--radius-pills); font-size: 13px; font-weight: 500; background: var(--color-sky-tint); color: #000; }
.pill-yellow { background: var(--color-marigold); } .pill-coral { background: var(--color-coral); color: #fff; } .pill-peach { background: var(--color-peach); }
.hl { display: inline-block; padding: 0.04em 0.42em 0.08em; border-radius: var(--radius-pills); background: var(--color-peach); line-height: 1.05; margin: 0 .04em; }
.hl-yellow { background: var(--color-marigold); } .hl-blue { background: var(--color-sky-tint); } .hl-coral { background: var(--color-coral); color: #fff; }
.marks { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.mark { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--color-signal-blue); background: #fff; overflow: hidden; animation: pop 600ms cubic-bezier(.34,1.56,.64,1) both; }
.mark img { width: 100%; height: 100%; object-fit: cover; }
.mark:nth-child(2) { border-color: var(--color-coral); } .mark:nth-child(3) { border-color: var(--color-marigold); }
.mark:nth-child(4) { border-color: var(--color-sky-wash); } .mark:nth-child(5) { border-color: var(--color-signal-blue); }
.mark:nth-child(6) { border-color: var(--color-coral); } .mark:nth-child(7) { border-color: var(--color-marigold); }
.mark:nth-child(n) { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes pop { from { transform: scale(.6) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.squiggle { position: absolute; pointer-events: none; opacity: .9; }

/* ── hero ── */
.hero { padding: 72px 0 40px; text-align: center; position: relative; }
.hero .display { max-width: 980px; margin: 0 auto; }
.hero .lede { max-width: 640px; margin: 20px auto 0; }
.hero .cta { justify-content: center; margin-top: 28px; gap: 12px; }
.hero .note { margin-top: 12px; }
.mockup { margin: 48px auto 0; max-width: 1040px; border-radius: 12px; box-shadow: var(--shadow-mockup); background: #fff; overflow: hidden; border: 1px solid var(--border); }
.mockup img { width: 100%; }
.mockup-frame { position: relative; }
.mockup-caption { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); }

/* ── logo wall ── */
.logo-wall { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; padding: 24px 0; }
.logo-wall span { font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: rgba(0,0,0,.6); display: inline-flex; align-items: center; gap: 8px; }
.logo-wall svg { width: 22px; height: 22px; opacity: .7; }

/* ── cards ── */
main#main .card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-cards); padding: var(--card-padding); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-graphite); }
.card .icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--color-sky-tint); margin-bottom: 14px; }
.card .icon svg { width: 20px; height: 20px; }
.accent { border: 0; }
.accent-yellow { background: var(--color-marigold); } .accent-coral { background: var(--color-coral); color: #fff; }
.accent-sky { background: var(--color-sky-wash); } .accent-tint { background: var(--color-sky-tint); }
.accent-midnight { background: var(--color-midnight-ink); color: #fff; }
.accent p, .accent-midnight p { color: inherit; opacity: .85; }
.accent-coral p, .accent-midnight p { color: rgba(255,255,255,.85); }
.accent .btn-text { color: inherit; }
.bento { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.bento .span-2 { grid-column: 1 / -1; }
.bento .card img { border-radius: 8px; border: 1px solid var(--border); margin-top: 18px; box-shadow: var(--shadow-mockup); }

/* ── feature blocks (text left, panel right; alternating) ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.feature.flip .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { color: var(--color-graphite); }
.feature-text ul { margin: 16px 0 0; padding-inline-start: 20px; color: var(--color-graphite); }
.feature-text li + li { margin-top: 6px; }
.feature-panel { border-radius: 12px; padding: 24px; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.feature-panel img { border-radius: 8px; box-shadow: var(--shadow-mockup); }
.feature-panel .illus { box-shadow: none; border-radius: 12px; }

/* ── steps ── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
main#main .card.step { position: relative; padding-top: 60px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 24px; inset-inline-start: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--color-ink-black); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }

/* ── pricing ── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 2px; }
.plan .price small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: rgba(0,0,0,.6); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; color: var(--color-graphite); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--color-notion-blue); }
.plan .btn { margin-top: auto; }
.plan.featured { border: 2px solid var(--color-notion-blue); }
.plan .tag { align-self: flex-start; margin-bottom: 8px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; font-size: 14px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { background: var(--color-paper-warmth); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.table .yes { color: #0a7a3f; font-weight: 600; } .table .no { color: rgba(0,0,0,.45); }

/* ── faq ── */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: rgba(0,0,0,.5); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--color-graphite); }
.faq .answer p + p { margin-top: 10px; }

/* ── misc ── */
.band { border-radius: 12px; padding: 48px; }
.band-midnight { background: var(--color-midnight-ink); color: #fff; }
.band-midnight .lede { color: rgba(255,255,255,.8); }
.band-yellow { background: var(--color-marigold); }
.kbd { display: inline-block; padding: 1px 7px; border: 1px solid rgba(0,0,0,.25); border-bottom-width: 2px; border-radius: 6px; font-size: 13px; background: #fff; }
.breadcrumbs { font-size: 13px; color: rgba(0,0,0,.55); margin-bottom: 24px; }
.breadcrumbs a:hover { color: #000; }
.article-meta { color: rgba(0,0,0,.55); font-size: 14px; margin: 12px 0 28px; }
.post-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.post-list .card h3 { font-size: 18px; }
.callout { border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.callout svg { flex: none; width: 22px; height: 22px; color: var(--color-coral); margin-top: 2px; }
.lang-switch { display: inline-flex; gap: 2px; background: var(--color-paper-warmth); border-radius: 8px; padding: 2px; }
.lang-switch a { padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: rgba(0,0,0,.6); }
.lang-switch a[aria-current="true"] { background: #fff; color: #000; box-shadow: var(--shadow-nav); }
.chat { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.bubble { padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.45; max-width: 86%; }
.bubble.q { background: #fff; border: 1px solid var(--border); align-self: flex-start; }
.bubble.t { background: var(--color-peach); align-self: flex-start; font-size: 14px; }
.bubble.a { background: #d9f2e2; align-self: flex-end; font-weight: 500; }
.bubble .who { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(0,0,0,.5); margin-bottom: 4px; }

/* ── footer ── */
footer { border-top: 1px solid var(--border); background: #fff; padding: 56px 0 32px; margin-top: var(--section-gap); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: rgba(0,0,0,.6); font-size: 14px; } .foot-grid a:hover { color: #000; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; font-size: 13px; color: rgba(0,0,0,.5); align-items: center; }

/* ── responsive ── */
/* Header: below 1100px (tablets and phones) the links move into the menu panel, so nothing is ever cut off. */
.nav-extra { display: none; }
@media (max-width: 1100px) {
  .nav-links { display: none; position: absolute; inset-inline: 0; top: 64px; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 12px 16px; box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-links.open { display: flex; animation: menuIn .22s ease both; }
  .nav-link { padding: 14px 12px; font-size: 16px; }
  .nav-links .nav-extra { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); margin-top: 6px; padding: 12px 12px 0; }
  .nav-toggle { display: inline-block; order: 3; margin-inline-start: 4px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-actions .btn-ghost, .nav-actions .lang-switch { display: none; }
}
@media (max-width: 420px) { .nav-actions .btn-primary { height: 36px; padding: 0 12px; font-size: 13px; } .brand { margin-right: 4px; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  main#main .grid-3, main#main .grid-4, .steps, .plans, .post-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .band { padding: 32px 24px; }
}
@media (max-width: 720px) {
  :root { --section-gap: 56px; }
  .wrap { padding: 0 16px; }
  main#main .grid-2, main#main .grid-3, main#main .grid-4, .steps, .plans, .bento, .post-list { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .marks { gap: 6px; } .mark { width: 40px; height: 40px; }
  .foot-grid { grid-template-columns: 1fr; }
  .logo-wall { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .mark { animation: none; } html { scroll-behavior: auto; } }

/* ── inner pages under the Notion chrome ── */
body { background: var(--color-paper-warmth); }
main#main { padding-top: 8px; }
main#main .wrap { max-width: 1180px; }

/* small screens: wide tables scroll inside the page; never widen the document (matters in RTL, where the overflow side is scrollable) */
html, body { overflow-x: clip; }
@media (max-width: 760px) { main#main .table, main#main .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ── motion on every page: content rises in as it scrolls into view (site.js tags the blocks) ── */
html.reveal .rv-a { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rd, 0ms); }
html.reveal .rv-a.in { opacity: 1; transform: none; }
main#main .hl { animation: hlPop .7s cubic-bezier(.34,1.56,.64,1) .25s both; }
@keyframes hlPop { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
main#main .card, .plan, .post-list .card, .faq details { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
main#main .card:hover, .post-list .card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.08); }
.plan.featured { box-shadow: 0 18px 40px -18px rgba(0,117,222,.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,117,222,.28); }
.feature-panel img, main#main .bento .card img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.feature-panel:hover img { transform: translateY(-6px) scale(1.01); }
.faq details[open] { box-shadow: 0 10px 24px rgba(0,0,0,.05); }
@media (hover: none) { main#main .card:hover, .post-list .card:hover, .feature-panel:hover img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html.reveal .rv-a { opacity: 1; transform: none; transition: none; }
  main#main .hl, .nav-links.open { animation: none; }
  main#main .card, .btn, .feature-panel img { transition: none; }
}
