/* ==========================================================================
   Jotter — landing site
   Finns-style: warm light-grey surfaces, white boxy cards with soft shadows,
   single-tone headings, coffee-brown accent. Mobile-first. No build step.
   ========================================================================== */

/* ----- Tokens -------------------------------------------------------------- */
:root {
  /* Surfaces — warm light grey + white (Finns) */
  --bg:        #F4F4F2;
  --bg-2:      #ECECE8;   /* slightly deeper grey insets */
  --card:      #FFFFFF;
  --border:    #E7E6E0;
  --border-2:  #DCDAD2;

  /* Coffee accent (theme color) */
  --coffee:     #6B4A30;
  --coffee-700: #573B26;
  --coffee-300: #B08A63;
  --coffee-tint:#EFE7DD;

  /* Ink / text — single tone, warm near-black */
  --ink:    #1C1A16;
  --body:   #565249;
  --muted:  #908B80;

  /* Dark CTA band */
  --dark:     #1B1813;
  --dark-2:   #262119;
  --on-dark:  #F2EFE9;
  --on-dark-mut: #A9A296;

  /* Status */
  --online: #5AB874;

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", Menlo, monospace;

  /* Layout */
  --maxw: 1140px;
  --r-lg: 22px;   /* big cards / mockup */
  --r-md: 16px;   /* inner cards */
  --r-sm: 11px;   /* buttons, chips */

  /* Shadows — soft diffusion, tinted warm (Finns) */
  --shadow-sm: 0 1px 2px rgba(28, 26, 22, .05);
  --shadow-card: 0 1px 2px rgba(28,26,22,.04), 0 14px 30px -18px rgba(28,26,22,.16);
  --shadow-lg: 0 2px 4px rgba(28,26,22,.04), 0 36px 70px -30px rgba(28,26,22,.28);

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ----- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: var(--coffee); color: #fff; }
:focus-visible { outline: 2.5px solid var(--coffee); outline-offset: 3px; border-radius: 4px; }

/* ----- Layout helpers ------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: 80px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--coffee);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coffee); box-shadow: 0 0 0 4px var(--coffee-tint); }

/* ----- Buttons (boxy, rounded, soft shadow) -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 500; font-size: 15.5px; line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coffee); color: #fff; box-shadow: 0 1px 2px rgba(28,26,22,.18), 0 10px 22px -12px rgba(107,74,48,.7); }
.btn-primary:hover { background: var(--coffee-700); box-shadow: 0 1px 2px rgba(28,26,22,.2), 0 14px 26px -12px rgba(107,74,48,.85); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--coffee-300); }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ----- Cards --------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* ----- Navbar -------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,244,242,.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled { border-color: var(--border); background: rgba(244,244,242,.92); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 19px; letter-spacing: -0.02em; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(150deg, var(--coffee) 10%, var(--coffee-700) 90%);
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: var(--shadow-sm);
}
.nav__links { display: none; gap: 32px; }
.nav__links a { font-size: 15px; color: var(--body); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
@media (min-width: 880px) { .nav__links { display: flex; } }

/* ----- Hero ---------------------------------------------------------------- */
.hero { padding-top: 56px; padding-bottom: 24px; }
.hero__top { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: end; }
.hero h1 { font-size: clamp(2.5rem, 8.5vw, 3.7rem); margin-top: 16px; max-width: 14ch; }
.hero__right { max-width: 44ch; }
.hero__sub { font-size: clamp(1.05rem, 3.5vw, 1.18rem); color: var(--body); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero__note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
@media (min-width: 900px) {
  .hero { padding-top: 76px; }
  .hero__top { grid-template-columns: 1.25fr 1fr; gap: 48px; }
  .hero h1 { font-size: clamp(3.2rem, 5vw, 4.4rem); }
}

/* ----- Hero product mockup (showcase) -------------------------------------- */
.showcase { margin-top: 48px; padding: 14px; overflow: hidden; }
.showcase__bar { display: flex; align-items: center; gap: 14px; padding: 8px 10px 16px; }
.showcase__bar .dots { display: flex; gap: 6px; }
.showcase__bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.showcase__title { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); font-weight: 500; }
.showcase__title .mk { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(150deg, var(--coffee), var(--coffee-700)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.showcase__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--coffee); background: var(--coffee-tint); padding: 5px 11px; border-radius: 999px; }
.showcase__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--online); }

.showcase__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 860px) { .showcase__grid { grid-template-columns: 0.82fr 1.18fr; } }

/* input chat panel */
.panel { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.panel__h { font-size: 12px; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.panel__h svg { color: var(--coffee-300); }
.chat-stack { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 92%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.bubble--out { align-self: flex-end; background: var(--coffee-tint); border: 1px solid var(--border-2); border-bottom-right-radius: 5px; }
.bubble--in { align-self: flex-start; background: var(--card); border: 1px solid var(--border); border-bottom-left-radius: 5px; box-shadow: var(--shadow-sm); }
.bubble .ok { color: var(--online); font-weight: 600; }
.bubble strong { color: var(--coffee-700); }
.num { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* sheet/table panel */
.sheet { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.sheet__sum { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); }
.sheet__sum > div { background: var(--card); padding: 14px 16px; }
.sheet__sum .k { font-size: 11.5px; color: var(--muted); }
.sheet__sum .v { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-size: 18px; color: var(--ink); font-weight: 500; margin-top: 3px; }
.sheet__sum .v.up { color: var(--coffee); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th { background: var(--coffee-tint); color: var(--coffee-700); font-weight: 500; text-align: left; padding: 9px 14px; font-size: 11.5px; letter-spacing: .02em; }
.tbl tbody td { padding: 11px 14px; border-top: 1px solid var(--border); color: var(--body); }
.tbl tbody td:first-child { color: var(--ink); font-weight: 500; }
.tbl .r { text-align: right; font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.tbl .r.profit { color: var(--coffee); }
.tbl tbody tr:last-child td { padding-bottom: 12px; }
.col-hide { display: none; }
@media (min-width: 480px) { .col-hide { display: table-cell; } }

/* ----- Section heads (centered, single tone, eyebrow) ---------------------- */
.head { text-align: center; max-width: 40ch; margin: 0 auto 48px; }
.head h2 { font-size: clamp(1.9rem, 5.5vw, 2.75rem); margin-top: 14px; }
.head p { margin-top: 14px; font-size: 1.05rem; color: var(--body); }

/* ----- How it works (3-up cards) ------------------------------------------ */
.cards3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 28px 24px; display: flex; flex-direction: column; }
.feature__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--coffee-tint); color: var(--coffee); display: grid; place-items: center; }
.feature__n { font-family: var(--font-mono); font-size: 12px; color: var(--coffee-300); margin-top: 18px; }
.feature h3 { font-size: 1.3rem; margin-top: 5px; }
.feature p { margin-top: 11px; font-size: 0.97rem; }
.feature p .q { color: var(--ink); font-weight: 500; }
.feature__demo { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.mini { display: flex; flex-direction: column; gap: 8px; }
.mini .bubble { max-width: 100%; font-size: 12.5px; }
.minisum { display: flex; justify-content: space-between; align-items: baseline; }
.minisum .k { font-size: 12px; color: var(--muted); }
.minisum .v { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-size: 15px; color: var(--ink); font-weight: 500; }
.minisum .v.up { color: var(--coffee); }

/* ----- Why (2-col) --------------------------------------------------------- */
.why__grid { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.why__body { display: flex; flex-direction: column; gap: 16px; max-width: 60ch; }
.why__body p { font-size: 1.05rem; }
.why__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag { font-size: 13px; color: var(--coffee-700); background: var(--coffee-tint); border: 1px solid var(--border-2); padding: 7px 14px; border-radius: 999px; }
@media (min-width: 900px) { .why__grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; } }

/* ----- About --------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 34px 26px; }
.about p { font-size: 1.05rem; }
.about__meta { display: flex; flex-direction: column; gap: 16px; }
.about__meta .row { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; }
.about__meta .row svg { color: var(--coffee); flex-shrink: 0; margin-top: 2px; }
.about__meta .row b { color: var(--ink); font-weight: 600; display: block; }
.about__meta .row span { color: var(--body); }
@media (min-width: 820px) {
  .about { grid-template-columns: 1.35fr 1fr; padding: 46px; gap: 48px; align-items: center; }
  .about__meta { border-left: 1px solid var(--border); padding-left: 48px; }
}

/* ----- CTA band ------------------------------------------------------------ */
.cta { background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: 60px 28px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 130% at 50% -20%, rgba(176,138,99,.2), transparent 60%); pointer-events: none; }
.cta__inner { position: relative; max-width: 32ch; margin-inline: auto; }
.cta h2 { color: #fff; font-size: clamp(1.9rem, 5.5vw, 2.7rem); }
.cta p { color: var(--on-dark-mut); margin-top: 14px; font-size: 1.05rem; }
.cta .btn { margin-top: 26px; }
.cta__small { display: block; margin-top: 14px; font-size: 13px; color: var(--on-dark-mut); }

/* ----- Footer -------------------------------------------------------------- */
.footer { padding-block: 60px 40px; border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
.footer__brand { max-width: 32ch; }
.footer__brand p { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.footer__col h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer__col a, .footer__col address { display: block; font-size: 14.5px; color: var(--body); font-style: normal; line-height: 1.75; }
.footer__col a { transition: color .2s; }
.footer__col a:hover { color: var(--coffee); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
.footer__bottom nav { display: flex; gap: 22px; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr; gap: 48px; } }

/* ----- Doc pages (privacy / terms) ----------------------------------------- */
.doc { min-height: 56vh; padding-block: 64px 96px; }
.doc__inner { max-width: 70ch; margin-inline: auto; }
.doc .badge { display: inline-block; font-size: 13px; color: var(--coffee-700); background: var(--coffee-tint); border: 1px solid var(--border-2); padding: 6px 13px; border-radius: 999px; margin-bottom: 20px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.7rem); }
.doc__lede { font-size: 1.15rem; color: var(--body); margin-top: 18px; }
.doc p { margin-top: 16px; }
.doc a.back { display: inline-flex; align-items: center; gap: 7px; margin-top: 36px; color: var(--coffee); font-weight: 500; }
.doc a.back:hover { color: var(--coffee-700); }

/* ----- Reveal (progressive; visible without JS) ---------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav, .btn .arrow { transition: none; }
}
