/* wethank.app — one stylesheet for every page.
   The company pages are neutral; each app appears in its own brand:
   Birdie's pastel sky, copper and sleeve; Sungto's lime and near-black. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --wash: #F4F2F7;
  --ink: #15131C;
  --muted: #5B5667;
  --line: rgba(21, 19, 28, 0.11);
  --line-strong: rgba(21, 19, 28, 0.2);
  --accent: #1F5E4B;
  --btn: #15131C;
  --btn-ink: #FFFFFF;
  --mark: #15131C;
  --mark-ink: #FFFFFF;
  --mark-dot: #D8F24B;
  --header: rgba(255, 255, 255, 0.82);

  /* Birdie */
  --b-ink: #2E2745;
  --b-sky: linear-gradient(180deg, #B7CDEA 0%, #D3D6F1 36%, #F3D9E6 70%, #FFE6CF 100%);
  --b-copper: #E98A3C;
  --b-sleeve: #35304F;
  /* Sungto */
  --s-lime: #D8F24B;
  --s-ink: #0C0C0E;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 32px;
  --radius-sm: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111016;
    --wash: #1A1822;
    --ink: #F2F0F6;
    --muted: #A9A3B6;
    --line: rgba(242, 240, 246, 0.12);
    --line-strong: rgba(242, 240, 246, 0.24);
    --accent: #7FD1B0;
    --btn: #F2F0F6;
    --btn-ink: #111016;
    --mark: #F2F0F6;
    --mark-ink: #111016;
    --header: rgba(17, 16, 22, 0.82);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { left: 12px; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--header); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.mark { width: 30px; height: 30px; color: var(--mark); flex: none; }
.nav { display: flex; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 550; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ── Type ───────────────────────────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(18px, 1.2vw + 12px, 21px); line-height: 1.55; color: var(--muted); max-width: 40em; margin: 20px 0 0; }
.section-h { font: 700 clamp(28px, 2.4vw + 14px, 40px)/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 28px; }
.ext { font-size: 0.8em; margin-left: 3px; opacity: 0.7; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--btn); color: var(--btn-ink);
  font-weight: 650; font-size: 16px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-quiet { background: transparent; color: inherit; border-color: currentColor; opacity: 0.85; }
.btn-quiet:hover { opacity: 1; }

/* ── Home: hero ─────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.hero .display { font-size: clamp(44px, 6.4vw + 10px, 92px); max-width: 12.5em; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; }

/* ── Home: apps ─────────────────────────────────────────────────────────── */
.apps { padding-block: 24px 40px; }
.app {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center;
  border-radius: var(--radius); padding: clamp(28px, 5vw, 64px);
  margin-bottom: 24px; min-height: 560px;
}
.app-birdie { background: var(--b-sky); color: var(--b-ink); }
.app-sungto { background: var(--s-lime); color: var(--s-ink); }
/* Birdie's wire: bare copper with the dark sleeve in the middle, sagging
   behind the phones. */
.app-birdie::after {
  content: ""; position: absolute; left: 48%; right: -1%; bottom: 16%; height: 80px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 90' preserveAspectRatio='none'%3E%3Cpath d='M0 10 Q500 110 1000 10' fill='none' stroke='%23E98A3C' stroke-width='5'/%3E%3Cpath d='M380 52.6 Q500 62 620 52.6' fill='none' stroke='%2335304F' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  opacity: 0.9;
}
.app-copy { position: relative; z-index: 2; max-width: 30em; }
.app-icon { width: 88px; height: 88px; border-radius: 22%; box-shadow: 0 10px 30px rgba(20, 16, 30, 0.18); }
.app-name { font: 700 clamp(40px, 3vw + 20px, 60px)/1 var(--display); letter-spacing: -0.035em; margin: 22px 0 6px; }
.app-tag { font: 600 clamp(20px, 1vw + 14px, 24px)/1.3 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; }
.app-copy > p { margin: 0 0 14px; }
.facts { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li { font-size: 14px; font-weight: 650; padding: 6px 12px; border-radius: 999px; border: 1.5px solid currentColor; opacity: 0.85; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; margin: 4px 0 20px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.app-birdie .btn-app { background: var(--b-ink); color: #fff; }
.app-sungto .btn-app { background: var(--s-ink); color: var(--s-lime); }

.app-shots { position: relative; z-index: 1; height: 100%; min-height: 460px; }
.app-shots .device { position: absolute; width: min(230px, 46%); top: 50%; left: 50%; }
.app-shots .d-back { transform: translate(-92%, -46%) rotate(-7deg); filter: drop-shadow(0 24px 40px rgba(20, 16, 30, .22)); }
.app-shots .d-front { transform: translate(-12%, -54%) rotate(5deg); filter: drop-shadow(0 30px 50px rgba(20, 16, 30, .28)); }

/* ── Device frame (the same bezel as sungto.com) ────────────────────────── */
.device { position: relative; aspect-ratio: 1470 / 3000; }
.device-screen { position: absolute; left: 5.03%; right: 5.03%; top: 2.17%; bottom: 2.17%; border-radius: 14.4% / 6.63%; overflow: hidden; background: #000; }
.device-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-bezel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ── Home: principles and company ───────────────────────────────────────── */
.principles { padding-block: clamp(48px, 7vw, 96px); }
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { font: 700 22px/1.25 var(--display); letter-spacing: -0.02em; margin: 0 0 10px; }
.principle p { margin: 0; color: var(--muted); }

.company { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-block: 24px clamp(64px, 8vw, 110px); }
.company .lede { margin-top: 0; }
.card { background: var(--wash); border-radius: var(--radius-sm); padding: 26px 28px; }
.card-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.card p { margin: 0 0 18px; }
.card p:last-child { margin-bottom: 0; }
.card-more { font-size: 15px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot { background: var(--wash); border-top: 1px solid var(--line); padding-block: 56px 36px; font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 36px; }
.foot-note { margin: 0; color: var(--muted); text-align: right; }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-col h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
.foot-legal { margin: 40px 0 0; color: var(--muted); font-size: 13px; max-width: 70em; }

/* ── Birdie: product page ───────────────────────────────────────────────── */
.t-birdie, .t-birdie-doc { --accent: #B4611E; }
@media (prefers-color-scheme: dark) { .t-birdie, .t-birdie-doc { --accent: #F0A060; } }
.subnav { border-bottom: 1px solid var(--line); background: var(--paper); }
.subnav-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; padding-block: 6px; }
.subnav-app { display: inline-flex; align-items: center; gap: 8px; font: 700 17px/1 var(--rounded); text-decoration: none; }
.subnav-app img { width: 28px; height: 28px; border-radius: 22%; }
.subnav nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.subnav nav a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.subnav nav a[aria-current="page"] { color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--b-copper); }

.t-birdie main { font-family: var(--rounded); }
.b-hero { background: var(--b-sky); color: var(--b-ink); overflow: hidden; }
.b-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.b-icon { width: 112px; height: 112px; border-radius: 22%; box-shadow: 0 14px 34px rgba(46, 39, 69, 0.22); }
.b-hero .display { font-family: var(--rounded); font-weight: 800; font-size: clamp(56px, 6vw + 16px, 104px); letter-spacing: -0.03em; margin-top: 24px; }
.b-tag { font: 700 clamp(22px, 1.4vw + 14px, 30px)/1.25 var(--rounded); margin: 8px 0 0; }
.b-hero .lede { color: color-mix(in srgb, var(--b-ink) 78%, transparent); }
.status-b { margin-top: 26px; }
.b-hero-shots { position: relative; height: clamp(420px, 44vw, 560px); }
.b-hero-shots .device { position: absolute; width: min(250px, 36%); top: 50%; left: 50%; }
.b-hero-shots .d-left { transform: translate(-128%, -44%) rotate(-8deg); filter: drop-shadow(0 20px 36px rgba(46, 39, 69, .2)); }
.b-hero-shots .d-right { transform: translate(28%, -44%) rotate(8deg); filter: drop-shadow(0 20px 36px rgba(46, 39, 69, .2)); }
.b-hero-shots .d-mid { transform: translate(-50%, -52%); z-index: 2; filter: drop-shadow(0 30px 50px rgba(46, 39, 69, .3)); }

.b-rule { padding-block: clamp(56px, 8vw, 110px) 24px; }
.rule-line { font: 800 clamp(34px, 3.6vw + 14px, 64px)/1.08 var(--rounded); letter-spacing: -0.03em; margin: 0; max-width: 16em; }
.rule-line::after { content: ""; display: block; width: 180px; height: 10px; margin-top: 26px; border-radius: 5px;
  background: linear-gradient(90deg, var(--b-copper) 0 22%, var(--b-sleeve) 22% 78%, var(--b-copper) 78%); }
@media (prefers-color-scheme: dark) { .rule-line::after { background: linear-gradient(90deg, var(--b-copper) 0 22%, #E6DEF5 22% 78%, var(--b-copper) 78%); } }

.b-steps { padding-block: clamp(48px, 7vw, 88px); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--wash); border-radius: var(--radius-sm); padding: 26px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--b-sleeve); color: #fff; font: 800 18px/1 var(--rounded); margin-bottom: 18px; }
.steps h3 { font: 800 22px/1.2 var(--rounded); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

.b-gallery { padding-block: 16px clamp(40px, 6vw, 72px); }
.rail { list-style: none; margin: 0; padding: 8px var(--gutter) 24px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
.rail li { flex: none; width: clamp(190px, 22vw, 240px); scroll-snap-align: start; }
.rail figure { margin: 0; }
.rail figcaption { margin-top: 14px; font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (min-width: 1240px) { .rail { justify-content: center; } }

.b-inside { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: clamp(32px, 5vw, 64px); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.ticks li { position: relative; padding-left: 34px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 18px; height: 6px; border-radius: 3px; background: var(--b-sleeve); box-shadow: -6px 0 0 -1px var(--b-copper), 6px 0 0 -1px var(--b-copper); }
@media (prefers-color-scheme: dark) { .ticks li::before { background: #E6DEF5; } }
.price { position: sticky; top: 90px; }
.price-big { font: 800 28px/1.15 var(--rounded); margin-bottom: 12px !important; }
.fine { font-size: 15px; color: var(--muted); }

.b-help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 24px clamp(64px, 8vw, 110px); }
.help-card { display: block; text-decoration: none; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 22px 24px; transition: border-color .2s ease, transform .2s ease; }
.help-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.help-card h3 { font: 800 20px/1.2 var(--rounded); margin: 0 0 4px; }
.help-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Documents: support, privacy, terms, contact, legal ─────────────────── */
.doc { max-width: 820px; padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.doc-title { font-size: clamp(38px, 3.6vw + 16px, 60px); }
.t-birdie-doc .doc-title { font-family: var(--rounded); font-weight: 800; }
.doc-date { margin: 12px 0 0; font-size: 14px; font-weight: 650; color: var(--muted); }
.doc-head { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc-head .lede b { color: var(--ink); }
.prose { max-width: 42em; }
.prose h2 { font: 700 22px/1.3 var(--display); letter-spacing: -0.015em; margin: 40px 0 10px; }
.t-birdie-doc .prose h2 { font-family: var(--rounded); font-weight: 800; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.contact-grid .card p { margin-bottom: 8px; overflow-wrap: anywhere; }
.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.facts-list dt { color: var(--muted); font-weight: 600; }
.facts-list dd { margin: 0; }

.nf { padding-block: clamp(72px, 12vw, 160px); }
.nf .display { font-size: clamp(44px, 5vw + 16px, 80px); }
.nf a { color: var(--accent); }

/* ── Narrow screens ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app, .b-hero-grid, .company, .b-inside { grid-template-columns: 1fr; }
  .app { min-height: 0; }
  .app-shots { min-height: 0; height: clamp(360px, 90vw, 460px); }
  .app-shots .device { width: min(200px, 44%); }
  .app-birdie::after { left: -1%; bottom: 4%; }
  .principle-grid, .steps, .b-help, .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-note { text-align: left; }
  .price { position: static; }
  .b-hero-shots { height: clamp(360px, 96vw, 480px); }
  .b-hero-shots .device { width: min(210px, 36%); }
}
@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand span { font-size: 20px; }
  .facts-list { grid-template-columns: 1fr; gap: 2px; }
  .facts-list dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .help-card { transition: none; }
  .btn:hover, .help-card:hover { transform: none; }
}
