/* Shared stylesheet for headwindlab.com, symbocalc.com and windwater.app.
   Each site sets its personality with a class on <body>. Type is Helvetica / the system font. */
:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --rule: #d2d2d7;
  --accent: #e8642c;
  --font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --max: 1180px;
}
body.site-windwater { --alt: #f2f6fa; --ink: #0d1b2a; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); -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 28px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(0,0,0,.08); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.wordmark img { width: 26px; height: 26px; border-radius: 6px; }
.site-headwindlab .wordmark img { display: none; }
.site-head nav { display: flex; gap: 28px; font-size: 14.5px; }
.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 { margin: 0; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(30px, 3.8vw, 48px); }
h3 { font-size: 20px; letter-spacing: -.015em; line-height: 1.25; }
.lede { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 36em; margin: 22px 0 0; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.kicker svg { width: 22px; height: 15px; }
.kicker a { text-decoration: none; }
section { padding: 100px 0; }

/* Home hero: headline left, every app right */
.home-hero { position: relative; overflow: hidden; padding: 88px 0 96px; background: var(--alt); }
.home-hero::before, .home-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.home-hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, #ffb48a, transparent 70%); }
.home-hero::after { width: 560px; height: 560px; left: -200px; bottom: -260px; background: radial-gradient(circle, #8fd8ec, transparent 70%); }
.home-hero .wind { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.home-hero h1 { font-size: clamp(42px, 5.2vw, 72px); }
.badges-line { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--ink-3); font-size: 15px; }
.badges-line span { display: inline-flex; align-items: center; gap: 7px; }
.badges-line span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.app-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.app-stack a { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; background: rgba(255,255,255,.86); border: 1px solid rgba(0,0,0,.06); border-radius: 18px; text-decoration: none; box-shadow: 0 10px 30px -20px rgba(0,0,0,.35); transition: transform .18s ease, box-shadow .18s ease; backdrop-filter: blur(8px); }
.app-stack a:hover { transform: translateX(-4px); box-shadow: 0 16px 40px -20px rgba(0,0,0,.45); }
.app-stack img { width: 56px; height: 56px; border-radius: 13px; }
.app-stack b { display: block; font-size: 17px; letter-spacing: -.01em; }
.app-stack span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.app-stack em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--alt); border-radius: 999px; padding: 5px 11px; white-space: nowrap; }

/* Home: one block per app */
.home-app { padding: 96px 0; position: relative; overflow: hidden; }
.home-app:nth-child(even) { background: var(--alt); }
.home-app::before { content: ""; position: absolute; width: 640px; height: 640px; border-radius: 50%; right: -180px; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); pointer-events: none; }
.home-app:nth-child(even)::before { right: auto; left: -180px; }
.home-app-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.home-app:nth-child(even) .home-app-shot { order: -1; }
.home-app h2 { font-size: clamp(30px, 3.4vw, 44px); margin-top: 6px; }
.home-app h2 a { text-decoration: none; }
.home-app-shot { display: flex; justify-content: center; }
.home-app-shot .phone { width: min(330px, 100%); }
.home-app-shot .watch { width: min(280px, 80%); }
.more-link { font-weight: 600; color: var(--accent); text-decoration: none; font-size: 16px; }
.more-link::after { content: " \203A"; }
.about-sec { background: var(--alt); }
.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; }

/* App hero */
.app-hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: var(--alt); }
.app-hero::before { content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; right: -200px; top: -200px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); pointer-events: none; }
.app-hero-grid { position: relative; 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: 26px; }
.app-id img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 8px 22px -12px rgba(0,0,0,.45); }
.app-id b { font-size: 19px; display: block; letter-spacing: -.01em; }
.app-id small { color: var(--ink-3); font-size: 14.5px; }
.props { list-style: none; padding: 0; margin: 28px 0 0; max-width: 34em; }
.props li { position: relative; padding: 10px 0 10px 32px; font-weight: 500; font-size: 17.5px; }
.props li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.props li::after { content: ""; position: absolute; left: 6px; top: 18px; width: 8px; height: 4.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.hero-shot { display: flex; justify-content: center; }
.hero-shot .phone { width: min(360px, 100%); }
.hero-shot .watch { width: min(300px, 80%); }
.hero-icon { width: 220px; height: 220px; border-radius: 50px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.duo-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--rule); background: rgba(255,255,255,.7); border-radius: 999px; padding: 7px 14px; }
.duo-chip svg { width: 22px; height: 15px; color: var(--accent); }

/* CTA */
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.badge { display: inline-flex; align-items: center; gap: 9px; background: #000; color: #fff; text-decoration: none; padding: 9px 20px 10px 15px; border-radius: 12px; 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 var(--font); letter-spacing: -.02em; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: .01em; margin-bottom: 3px; }
.badge:hover { background: #2a2a2c; }
.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%; }
.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%; }
/* Half open: two halves of the same capture, folded toward the viewer */
.duo-book { position: relative; width: min(860px, 100%); aspect-ratio: 2853 / 2007; margin: 0 auto; perspective: 2200px; display: flex; }
.duo-book .half { flex: 1; background-size: 200% 100%; background-color: #0c0c0e; border: 10px solid #0c0c0e; }
.duo-book .left { background-position: left center; border-right-width: 3px; border-radius: 26px 4px 4px 26px; transform-origin: right center; transform: rotateY(24deg); box-shadow: 0 0 0 1.5px #3b3b40, inset -40px 0 60px -40px rgba(0,0,0,.35), -30px 40px 70px -40px rgba(0,0,0,.5); }
.duo-book .right { background-position: right center; border-left-width: 3px; border-radius: 4px 26px 26px 4px; transform-origin: left center; transform: rotateY(-24deg); box-shadow: 0 0 0 1.5px #3b3b40, inset 40px 0 60px -40px rgba(0,0,0,.25), 30px 40px 70px -40px rgba(0,0,0,.5); }
.duo-book-wrap { margin-top: 72px; }
.caption { text-align: center; color: var(--ink-3); font-size: 14.5px; margin: 22px 0 0; }

/* Why it's different */
.edge { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.edge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.edge h3 { font-size: 22px; }
.edge p { margin: 10px 0 0; color: var(--ink-2); }

/* Feature rows */
.rows { padding: 40px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 64px 0; }
.row:nth-child(even) .row-shot { order: -1; }
.row-text { max-width: 30em; }
.row-text h2 { font-size: clamp(30px, 3.4vw, 42px); }
.row-text p { color: var(--ink-2); font-size: 19px; margin: 18px 0 0; }
.row-shot { display: flex; justify-content: center; }
.row-shot .phone { width: min(330px, 100%); }
.row-shot .watch { width: min(270px, 80%); }

/* Everything else */
.spec-sec { background: var(--alt); }
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; margin-top: 40px; }
.spec h3 { font-size: 18px; }
.spec p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; }

/* Duo */
.duo-section { background: #0b0c0f; color: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; }
.duo-section .lede { color: #c7c7cc; }
.duo-list { display: grid; gap: 56px; margin-top: 56px; }
.duo-list .duo { max-width: 1060px; margin: 0 auto; width: 100%; }

/* Story */
.story { max-width: 760px; }
.story h2 { font-size: clamp(30px, 3.6vw, 44px); }
.story p { font-size: 20px; line-height: 1.6; color: var(--ink-2); margin: 20px 0 0; }
.story .sig { font-size: 17px; color: var(--ink-3); font-style: italic; }

/* FAQ */
.faq-sec { background: var(--alt); }
.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: 15px; font-size: 26px; 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 { text-align: center; }
.end-cta img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 22px; box-shadow: 0 14px 30px -16px rgba(0,0,0,.45); }
.end-cta p { color: var(--ink-3); margin: 10px 0 0; }
.end-cta .cta { justify-content: center; }

/* Cross links to every app */
.family { background: var(--alt); border-top: 1px solid var(--rule); padding: 72px 0; }
.family h2 { font-size: 28px; }
.family-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.family-grid a { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 16px; background: var(--card); border: 1px solid rgba(0,0,0,.06); border-radius: 16px; text-decoration: none; transition: transform .15s ease; }
.family-grid a:hover { transform: translateY(-2px); }
.family-grid img { grid-row: span 2; width: 48px; height: 48px; border-radius: 11px; }
.family-grid b { font-size: 15.5px; }
.family-grid span { font-size: 13.5px; color: var(--ink-3); line-height: 1.3; }

/* Prose (privacy, support) */
.prose { max-width: 780px; }
.prose 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 { 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: 32px 0 48px; font-size: 13.5px; 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: graph paper hero, serif math */
.site-symbocalc .app-hero { background-color: #fffdf8; background-image: linear-gradient(#efe8d8 1px, transparent 1px), linear-gradient(90deg, #efe8d8 1px, transparent 1px); background-size: 32px 32px; }
.math { font: italic 400 clamp(21px, 2.2vw, 27px)/1.4 "Iowan Old Style", "Palatino", Georgia, serif; color: var(--ink-2); margin-top: 24px; }
.math b { font-style: normal; font-weight: 500; color: var(--accent); }

/* WindWater: marine hero with a tide curve */
.site-windwater .app-hero { background: #0d2240; color: #eef3f8; padding-bottom: 120px; }
.site-windwater .app-hero::before { background: radial-gradient(circle, rgba(90, 160, 230, .35), transparent 68%); }
.site-windwater .app-hero .lede, .site-windwater .app-hero .app-id small, .site-windwater .app-hero .cta .note { color: #b6c6d8; }
.site-windwater .app-hero .duo-chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #eef3f8; }
.site-windwater .app-hero .badge { box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.site-windwater .app-hero .tide { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 120px; }
.site-windwater .app-hero .props li::before { background: #e8573a; }

@media (max-width: 960px) {
  .home-hero-grid, .app-hero-grid, .home-app-grid, .two-col, .row { grid-template-columns: 1fr; gap: 48px; }
  .home-app:nth-child(even) .home-app-shot, .row:nth-child(even) .row-shot { order: 0; }
  .edge-grid, .spec { grid-template-columns: 1fr 1fr; }
  .family-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section, .home-app { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .home-hero { padding: 48px 0 56px; }
  .app-hero { padding: 40px 0 48px; }
  .site-head nav { gap: 18px; font-size: 14px; }
  .site-head nav .hide-sm { display: none; }
  .edge-grid, .spec, .family-grid { grid-template-columns: 1fr; }
  .row { padding: 40px 0; }
  .duo-list { gap: 32px; }
  .duo-book .half { border-width: 5px; }
  .app-stack a { grid-template-columns: 48px 1fr; }
  .app-stack img { width: 48px; height: 48px; }
  .app-stack em { display: none; }
}
