/* Shared stylesheet. Each site sets its personality with a class on <body>. */
:root {
  --paper: #f4f2ec;
  --card: #fbfaf7;
  --ink: #131417;
  --ink-2: #44474e;
  --ink-3: #7a7d84;
  --rule: #dad6cc;
  --accent: #e8642c;
  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
  --head-bg: rgba(244, 242, 236, .86);
}
body.site-symbocalc {
  --paper: #fdfcf9; --card: #ffffff; --rule: #e6e1d6; --ink: #1a1712; --ink-2: #4b463d; --ink-3: #8a8478;
  --display: "Newsreader", Georgia, serif; --head-bg: rgba(253, 252, 249, .88);
}
body.site-windwater {
  --paper: #f3f6f9; --card: #ffffff; --rule: #d5dee7; --ink: #0d1b2a; --ink-2: #3c4b5c; --ink-3: #6f7f90;
  --head-bg: rgba(243, 246, 249, .88);
}

* { 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(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: var(--head-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); font-stretch: 110%; text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark img { width: 28px; height: 28px; border-radius: 7px; }
.site-symbocalc .wordmark { font-stretch: normal; font-size: 21px; font-weight: 600; }
.site-head nav { display: flex; gap: 26px; font-size: 15px; }
.site-head nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.site-head nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; line-height: 1.04; }
h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 800; font-stretch: 106%; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 750; font-stretch: 104%; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.site-symbocalc h1, .site-symbocalc h2 { font-weight: 600; font-stretch: normal; letter-spacing: -.02em; }
.site-symbocalc h1 { font-size: clamp(44px, 6.8vw, 84px); }
.site-symbocalc h3 { font-family: var(--body); }
.lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 22px 0 0; }
.kicker { font: 600 12.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 18px; }
.kicker a { text-decoration: none; color: var(--accent); }
section { padding: 96px 0; }

/* Home hero (HeadwindLab) */
.hero { padding: 112px 0 64px; }
.hero h1 { max-width: 12ch; }
.app-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.app-row { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--rule); }
.row-main { flex: 1; display: grid; grid-template-columns: 84px 1fr; gap: 26px; align-items: center; padding: 30px 0; text-decoration: none; }
.row-main img { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.row-main h3 { font-size: clamp(22px, 2.4vw, 28px); font-stretch: 108%; }
.row-main p { margin: 6px 0 0; color: var(--ink-2); max-width: 46em; }
.row-main .tag { font-size: 14px; color: var(--ink-3); margin-top: 8px; }
.row-main:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.row-store { font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.row-store:hover { background: var(--ink); color: var(--paper); }
.row-store.soon { border-color: var(--rule); color: var(--ink-3); }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; }
.two-col p { margin: 0 0 18px; color: var(--ink-2); font-size: 18px; }
#about { border-top: 1px solid var(--rule); }
.also { padding: 56px 0; border-top: 1px solid var(--rule); }
.also p { color: var(--ink-2); margin: 0; }
.also-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.also-grid a { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--rule); border-radius: 16px; text-decoration: none; background: var(--card); }
.also-grid img { grid-row: span 2; border-radius: 10px; }
.also-grid span { font-size: 14px; color: var(--ink-3); }

/* App hero */
.app-hero { padding: 72px 0 40px; overflow: hidden; }
.app-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.app-hero-grid > * { min-width: 0; }
.app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.app-id b { font: 700 19px/1.2 var(--display); display: block; }
.app-id small { color: var(--ink-3); font-size: 14.5px; }
.props { list-style: none; padding: 0; margin: 30px 0 0; max-width: 34em; }
.props li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--rule); font-weight: 550; }
.props li:last-child { border-bottom: 1px solid var(--rule); }
.props li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.hero-shot { display: flex; justify-content: center; position: relative; }
.hero-shot::before { content: ""; position: absolute; inset: 8% -10% 0; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); z-index: -1; }
.hero-shot .phone { width: min(360px, 100%); }
.hero-shot .watch { width: min(300px, 80%); }
.hero-shot .plain { width: min(360px, 100%); }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.badge { display: inline-flex; align-items: center; gap: 9px; background: #000; color: #fff; text-decoration: none; padding: 9px 20px 10px 15px; border-radius: 12px; border: 1px solid #a6a6a6; line-height: 1; }
.badge svg { width: 26px; height: 26px; fill: #fff; margin-top: -2px; }
.badge span { display: flex; flex-direction: column; font: 600 22px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; letter-spacing: -.02em; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: .01em; margin-bottom: 3px; }
.badge:hover { background: #1c1c1e; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; padding: 15px 22px; border-radius: 12px; }
.cta .note { font-size: 14.5px; color: var(--ink-3); }

/* Device frames */
.phone { background: #0c0c0e; padding: 3.2%; border-radius: 13.5% / 6.2%; box-shadow: 0 0 0 1.5px #3b3b40, 0 40px 80px -36px rgba(10, 12, 20, .55); }
.phone img { border-radius: 10.6% / 4.9%; width: 100%; }
.watch { background: #0c0c0e; padding: 6%; border-radius: 30% / 25%; box-shadow: 0 0 0 1.5px #3b3b40, 0 30px 60px -30px rgba(10, 12, 20, .55); }
.watch img { border-radius: 24% / 20%; width: 100%; }
.plain img { border-radius: 26px; box-shadow: 0 30px 60px -36px rgba(10, 12, 20, .5); }
.duo { position: relative; background: #0c0c0e; padding: 1.6%; border-radius: 4.2% / 5.8%; box-shadow: 0 0 0 1.5px #3b3b40, 0 50px 90px -40px rgba(10, 12, 20, .6); }
.duo::before, .duo::after { content: ""; position: absolute; left: 50%; width: 2.4%; height: 3px; margin-left: -1.2%; background: #4a4a50; border-radius: 2px; }
.duo::before { top: -1.5px; }
.duo::after { bottom: -1.5px; }
.duo-screen { position: relative; border-radius: 2.6% / 3.7%; overflow: hidden; }
.duo-screen::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(255,255,255,.18), rgba(0,0,0,.10)); pointer-events: none; }
.duo img { width: 100%; }

/* Feature rows: one idea, one screenshot */
.rows { padding-top: 40px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.row + .row { border-top: 1px solid var(--rule); }
.row:nth-child(even) .row-shot { order: -1; }
.row-text { max-width: 30em; }
.row-text p { color: var(--ink-2); font-size: 18.5px; margin: 18px 0 0; }
.row-num { font: 600 13px/1 var(--body); color: var(--accent); letter-spacing: .08em; margin-bottom: 16px; display: block; }
.row-shot { display: flex; justify-content: center; }
.row-shot .phone, .row-shot .plain { width: min(330px, 100%); }
.row-shot .watch { width: min(260px, 80%); }

/* Compact spec list for remaining features */
.spec { border-top: 1px solid var(--ink); margin-top: 36px; }
.spec div { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.spec h3 { font-size: 18px; }
.spec p { margin: 0; color: var(--ink-2); }

/* Duo */
.duo-section { background: #0e1013; color: #f1efe9; --rule: #2a2d33; --ink-2: #b9bcc3; --ink-3: #8b8f97; }
.duo-section .lede { color: #b9bcc3; }
.duo-list { display: grid; gap: 56px; margin-top: 56px; }
.duo-list .duo { max-width: 1040px; margin: 0 auto; width: 100%; }

/* Story */
.story-sec { border-top: 1px solid var(--rule); }
.story { max-width: 760px; }
.story h2 { font-size: clamp(30px, 3.8vw, 46px); }
.story p { font-size: 20px; line-height: 1.6; color: var(--ink-2); margin: 22px 0 0; }
.story .sig { font: italic 18px/1 Georgia, serif; color: var(--ink-3); }

/* FAQ */
.faq-sec { border-top: 1px solid var(--rule); }
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; padding: 20px 40px 20px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--ink-3); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin: 0 0 22px; max-width: 44em; }
.fine { font-size: 14px; color: var(--ink-3); margin-top: 28px; max-width: 52em; }

/* End CTA */
.end-cta { background: var(--accent); color: #fff; text-align: left; }
.end-cta h2 { max-width: 18ch; }
.end-cta .note { color: rgba(255,255,255,.85); }


/* More apps */
.more-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.more-apps a { display: block; padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; text-decoration: none; transition: transform .15s ease; }
.more-apps a:hover { transform: translateY(-2px); }
.more-apps img { width: 44px; height: 44px; border-radius: 10px; margin-bottom: 14px; }
.more-apps b { display: block; font-size: 15.5px; }
.more-apps span { font-size: 14px; color: var(--ink-3); }

/* Prose (privacy, support) */
.prose { max-width: 760px; }
.prose-wide { max-width: 860px; }
.prose h1, .prose-wide h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 24px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; letter-spacing: -.01em; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a, .prose-wide a { color: var(--accent); }
.table { overflow-x: auto; margin: 16px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; }
.support-app { border-top: 1px solid var(--rule); padding: 36px 0 8px; margin-top: 36px; }
.support-app h2 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.support-app h2 img { border-radius: 9px; }
.support-app .links { font-size: 15px; color: var(--ink-3); margin: 10px 0 8px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 36px 0 52px; font-size: 14px; color: var(--ink-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.site-foot a { color: var(--ink-2); }

/* SymboCalc personality: graph-paper hero */
.site-symbocalc .app-hero { background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 32px 32px; background-position: center top; -webkit-mask-image: none; position: relative; }
.site-symbocalc .app-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--paper)); pointer-events: none; }
.site-symbocalc .app-hero .wrap { position: relative; z-index: 1; }
.math { font: italic 400 clamp(20px, 2.2vw, 26px)/1.4 "Newsreader", Georgia, serif; color: var(--ink-2); margin-top: 26px; }
.math b { font-style: normal; font-weight: 500; color: var(--accent); }

/* WindWater personality: marine hero with a tide curve */
.site-windwater .app-hero { background: #0d2240; color: #eef3f8; position: relative; padding-bottom: 96px; }
.site-windwater .app-hero .lede, .site-windwater .app-hero .app-id small, .site-windwater .app-hero .cta .note { color: #b6c6d8; }
.site-windwater .app-hero .props li { border-color: rgba(255,255,255,.16); }

.site-windwater .app-hero .tide { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.site-windwater .site-head { background: rgba(13, 34, 64, .9); border-color: rgba(255,255,255,.08); }
.site-windwater .site-head, .site-windwater .site-head nav a { color: #eef3f8; }
.site-windwater .hero-shot::before { background: radial-gradient(closest-side, rgba(90, 160, 230, .35), transparent); }
.site-windwater .props li::before { border-color: #e8573a; }

@media (max-width: 900px) {
  .app-hero-grid, .two-col, .row { grid-template-columns: 1fr; gap: 44px; }
  .row:nth-child(even) .row-shot { order: 0; }
  .more-apps { grid-template-columns: 1fr 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 40px; }
  .app-hero { padding: 40px 0 24px; }
  .site-head nav { gap: 16px; font-size: 14px; }
  .site-head nav .hide-sm { display: none; }
  .app-row { flex-direction: column; align-items: flex-start; gap: 0; padding-bottom: 22px; }
  .row-main { grid-template-columns: 64px 1fr; gap: 18px; padding-bottom: 14px; }
  .row-main img { width: 64px; height: 64px; border-radius: 15px; }
  .row-store { margin-left: 82px; }
  .also-grid, .more-apps { grid-template-columns: 1fr; }
  .row { padding: 40px 0; }
  .duo-list { gap: 32px; }
}
