/* thinletter.io — visual identity 1.0 (brand/thinletter/README.md) */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/Manrope-Variable.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #15131F; --paper: #FCF7F7; --rose: #E43AAF; --coral: #FA7A8C; --apricot: #F8C68F; --circle: #F76696;
  --surface: #221D2E; --muted: #B7AEC4; --border: #493F58;
  --gradient: linear-gradient(180deg, #E43AAF 0%, #FA7A8C 56%, #F8C68F 100%);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w: 1080px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color .15s; }
a:hover { border-bottom-color: var(--circle); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }

/* header */
header.top { padding: 34px 0 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo { display: block; border: 0; }
.logo img { display: block; width: 210px; height: auto; }
nav.main { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 26px; font-weight: 500; font-size: .95rem; }
nav.main a { border: 0; color: var(--muted); }
nav.main a:hover { color: var(--paper); }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-size: .82rem; letter-spacing: .04em; }
.lang a { border: 0; padding: 5px 12px; color: var(--muted); }
.lang a.on { background: var(--surface); color: var(--paper); }

/* hero */
.hero { padding: 120px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero p.lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); color: var(--muted); max-width: 34em; margin: 28px 0 36px; font-weight: 400; }
.grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; border: 1px solid var(--border); border-radius: 10px; padding: 12px 20px; font-weight: 600; font-size: .95rem; color: var(--paper); background: transparent; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--circle); border-color: var(--circle); color: var(--ink); }
.btn.primary:hover { filter: brightness(1.06); }

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--border); }
section .intro { color: var(--muted); max-width: 40em; font-size: 1.05rem; margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 26px 20px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--circle); margin-bottom: 18px; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 12px; }
.stat span { color: var(--muted); font-size: .95rem; display: block; max-width: 24em; }

/* details (click to expand) */
details { border-top: 1px solid var(--border); }
details:last-of-type { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 500; font-size: 1.02rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--circle); font-size: 1.4rem; font-weight: 400; line-height: 1; flex: 0 0 auto; }
details[open] summary::after { content: "−"; }
details .body { padding: 0 0 26px; color: var(--muted); max-width: 70ch; font-size: .98rem; }
details .body p:last-child { margin-bottom: 0; }
details .body ul, details .body ol { padding-left: 1.3em; margin: 0 0 1em; }
details .body li { margin: 6px 0; }
.card details { border: 0; margin-top: 6px; }
.card details:last-of-type { border: 0; }
.card summary { padding: 10px 0 4px; font-size: .9rem; color: var(--circle); justify-content: flex-start; }
.card summary::after { font-size: 1.1rem; }
.card details .body { padding: 8px 0 4px; font-size: .93rem; }

/* tables */
.tbl { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* link list */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.links a { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: var(--surface); }
.links a:hover { border-color: var(--circle); }
.links a b { display: block; font-weight: 600; margin-bottom: 4px; }
.links a span { color: var(--muted); font-size: .9rem; }

/* contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact .big { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.contact .big a { border-bottom-width: 2px; }

footer { padding: 40px 0 64px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }

@media (max-width: 820px) {
  .hero { padding: 72px 0 64px; }
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  header.top .wrap { justify-content: center; }
  nav.main { gap: 10px 18px; font-size: .9rem; }
  .logo img { width: 180px; }
}
html, body { overflow-x: hidden; }

/* headline comparison table: our rows */
.tbl tr.ours td { font-weight: 700; }
.tbl tr.ours td.n { font-weight: 800; }
.tbl tr.ours td:first-child { color: var(--ink, inherit); }
