/* =========================================================
   tdy — tdy.app
   Paper design system: warm off-white paper, near-black ink,
   one deep-teal accent. Calm, editorial, Apple-clean.
   Restraint: few colors, a deliberate type scale, one accent.
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* paper palette */
  --paper:   #F4F2ED;   /* warm off-white canvas */
  --paper-2: #FBFAF7;   /* cards / raised surfaces */
  --panel:   #ECEAE3;   /* deeper inset surface */

  --ink:   #111110;     /* primary text, warm near-black */
  --ink-2: #56554F;     /* secondary text */
  --ink-3: #8A8980;     /* muted / labels */
  --ink-4: #B7B5AC;     /* faint */

  --accent:     #0FA98E;             /* the single accent (teal) */
  --accent-2:   #3A52E4;             /* indigo — logo mark gradient ONLY */
  --accent-soft: rgba(15,169,142,.10);
  --red:   #B9433F;     /* removed / destructive marker */

  --line:   rgba(17,17,16,0.10);
  --line-2: rgba(17,17,16,0.16);
  --shadow:    0 1px 2px rgba(17,17,16,.04), 0 18px 50px -24px rgba(17,17,16,.20);
  --shadow-lg: 0 30px 80px -30px rgba(17,17,16,.30);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* the teal accent does color work; reserve the gradient strictly for the logo mark */
.grad-text { color: var(--accent); }
.mark-grad { background: linear-gradient(150deg, #19D3B0, var(--accent-2)); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s; cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 12px 34px rgba(17,17,16,.18); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(17,17,16,.04); border-color: rgba(17,17,16,.24); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn svg { margin-top: -1px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(16px);
  background: color-mix(in srgb, var(--paper) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.lnk { color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.nav-links a.lnk:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links .lnk { display: none; } }

/* ---- hero ---- */
.hero { padding: 92px 0 78px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% 0 auto 0; height: 680px; z-index: -1;
  background: radial-gradient(58% 60% at 50% 0%, var(--accent-soft), transparent 68%); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  border: 1px solid var(--line); background: rgba(255,255,255,.4); padding: 6px 13px 6px 11px; border-radius: 999px; margin-bottom: 28px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.eyebrow b { color: var(--accent); font-weight: 600; }
.hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 700; max-width: 14ch; }
.hero h1 .grad-text { color: var(--accent); }
.hero p.sub { max-width: 560px; margin: 28px 0 0; font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); line-height: 1.5; }
.hero p.sub b { color: var(--ink); font-weight: 500; }
.hero-cta { display: flex; gap: 18px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.hero-note { color: var(--ink-3); font-size: 14px; }
.hero-note b { color: var(--ink-2); font-weight: 600; }

/* ---- before/after demo card ---- */
.demo { max-width: 760px; margin: 60px 0 0; background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; text-align: left; }
.demo-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6dae0; display: inline-block; }
.demo-bar i:nth-child(1){ background:#ff5f57 } .demo-bar i:nth-child(2){ background:#febc2e } .demo-bar i:nth-child(3){ background:#28c840 }
.demo-bar .label { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.demo-bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.demo-bar .live span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.demo-row { padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; word-break: break-all; line-height: 1.6; }
.demo-row .note { word-break: normal; }
.demo-row .tag { display: block; font-family: var(--font); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.demo-before .tag { color: var(--ink-3); } .demo-before { color: var(--ink-3); }
.demo-before .host { color: var(--ink-2); }
.demo-before s { color: var(--ink-4); text-decoration-color: rgba(185,67,63,.6); }
.demo-after { border-top: 1px dashed var(--line-2); background: var(--accent-soft); }
.demo-after .tag { color: var(--accent); } .demo-after .url { color: var(--ink); } .demo-after .host { color: var(--accent); font-weight: 600; }
.demo-arrow { display:flex; justify-content:center; margin:-9px 0; position: relative; z-index: 1; }
.demo-arrow span { background: var(--ink); color: var(--paper); width:30px; height:30px; border-radius:50%; display:grid; place-items:center; font-size:15px; box-shadow: var(--shadow); }

/* ---- sections ---- */
section.band { padding: 92px 0; }
section.band.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 9px; }
.section-head .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -.035em; font-weight: 700; line-height: 1.04; }
.section-head h2 .accent { color: var(--accent); }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; line-height: 1.5; max-width: 620px; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 34px 30px 30px; position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step .n { font-size: 13px; font-family: var(--mono); color: var(--ink-3); margin-bottom: 20px; display: flex; align-items: center; }
.step .n .big { font-size: 56px; font-weight: 800; letter-spacing: -.04em; line-height: .8; color: var(--ink); font-family: var(--font); }
.step.go .n .big { color: var(--accent); }
.step h3 { font-size: 21px; letter-spacing: -.02em; font-weight: 600; } .step p { margin-top: 9px; color: var(--ink-2); font-size: 15px; max-width: 30ch; }

/* ---- features ---- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .18s; }
.feat:hover { background: var(--paper-2); }
.feat .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--paper-2); border: 1px solid var(--line); color: var(--accent); }
.feat.lead .ico { background: var(--accent-soft); border-color: rgba(15,169,142,.3); }
.feat h3 { font-size: 16.5px; letter-spacing: -.015em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.feat.lead h3 { color: var(--accent); }
.feat p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.feat p code { font-family: var(--mono); font-size: 12px; background: var(--panel); padding: 1px 5px; border-radius: 5px; color: var(--ink); }
.feat .badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

/* ---- providers ---- */
.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.prov { display: flex; align-items: center; gap: 10px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 15px; font-size: 14px; transition: border-color .18s, background .18s; }
.prov:hover { border-color: rgba(15,169,142,.32); background: var(--accent-soft); }
.prov .from { font-weight: 600; flex: 1; } .prov .arrow { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.prov .to { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.prov-note { margin-top: 28px; color: var(--ink-3); font-size: 14px; }

/* ---- privacy callout ---- */
.callout { text-align: center; max-width: 720px; margin: 0 auto; }
.callout .lock { width: 56px; height: 56px; border-radius: 16px; background: var(--paper-2); border: 1px solid var(--line-2);
  display: grid; place-items: center; margin: 0 auto 22px; color: var(--accent); box-shadow: var(--shadow); }
.callout h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; font-weight: 700; }
.callout h2 .accent { color: var(--accent); }
.callout p { margin-top: 16px; color: var(--ink-2); font-size: 18px; line-height: 1.55; }

/* ---- final CTA ---- */
.cta { text-align: center; }
.cta-box { background: var(--ink); border-radius: 28px; padding: 72px 32px; color: var(--paper); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: auto 0 -60% 0; height: 360px; background: radial-gradient(50% 100% at 50% 100%, rgba(15,169,142,.34), transparent 70%); pointer-events: none; }
.cta-box h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; font-weight: 700; position: relative; }
.cta-box p { margin-top: 14px; color: rgba(244,242,237,.74); font-size: 18px; position: relative; }
.cta-box .btn { margin-top: 30px; background: var(--paper); color: var(--ink); position: relative; }
.cta-box .btn:hover { transform: translateY(-2px); }
.cta-box .meta { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: rgba(244,242,237,.55); position: relative; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--ink-3); font-size: 14px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-inner .swap { font-family: var(--mono); font-size: 12.5px; }
.foot-inner .swap .b { color: var(--accent); }
.foot-links { display: flex; gap: 22px; } .foot-links a:hover { color: var(--ink); }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: none; border-top: 1px solid var(--line); } .features { grid-template-columns: 1fr; } }

/* ---- legal pages (privacy / terms) ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 64px 40px 88px; }
.legal h1 { font-size: 36px; letter-spacing: -.035em; font-weight: 700; margin-bottom: 8px; }
.legal .upd { color: var(--ink-3); font-size: 14px; margin-bottom: 36px; font-family: var(--mono); }
.legal h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -.02em; font-weight: 600; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 12px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); font-weight: 500; }
.legal code { font-family: var(--mono); font-size: .9em; background: var(--panel); padding: 1px 5px; border-radius: 5px; color: var(--ink); }

/* ---- platforms (SEO trio above the provider grid) ---- */
.plats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 34px; }
.plat { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 26px; }
.plat h3 { font-size: 17px; letter-spacing: -.015em; font-weight: 600; color: var(--accent); }
.plat p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ---- comparison ---- */
.compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cmp { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 26px; }
.cmp h3 { font-size: 16px; letter-spacing: -.01em; font-weight: 600; color: var(--ink); }
.cmp h3::before { content: "✕  "; color: var(--red); font-size: 13px; }
.cmp p { margin-top: 8px; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.cmp-tdy { margin-top: 14px; background: var(--accent-soft); border: 1px solid rgba(15,169,142,.3);
  border-radius: 14px; padding: 22px 26px; font-size: 16px; line-height: 1.55; color: var(--ink); }
.cmp-tdy b { color: var(--accent); }

/* ---- FAQ ---- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 2px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 18px; color: var(--ink-3); transition: transform .18s; }
.faq details[open] summary::after { content: "–"; color: var(--accent); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 62ch; }
.faq details p code { font-family: var(--mono); font-size: 12.5px; background: var(--panel); padding: 1px 5px; border-radius: 5px; color: var(--ink); }

@media (max-width: 860px) {
  .plats, .compare { grid-template-columns: 1fr; }
}
.prov-disclosure { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--ink-3); max-width: 68ch; }
