:root {
  --paper: #FAFAF7;
  --ink: #141412;
  --near-black: #0D0D0C;
  --blue: #2038E8;
  --blue-glow: rgba(32, 56, 232, 0.45);
  --mute: #8B8B84;
  --line: #EAEAE4;
  --card: #FFFFFF;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 28px;
  --container: 1160px;
  --nav-h: 76px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--paper); color: var(--ink); line-height: 1.5; font-weight: 400;
}
img, svg { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ————————— Legacy single-page content (support.html) ————————— */
.wrap { max-width: 640px; margin: 0 auto; padding: 48px 24px 64px; }
.wrap-wide { max-width: 880px; }
.back { display: inline-block; margin-bottom: 32px; color: var(--mute); text-decoration: none; font-size: 14px; }
.word { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 40px; }
.word span { color: var(--blue); }
.lede { font-size: 18px; font-weight: 400; margin: 0 0 40px; color: var(--ink); }
.fine { font-size: 13px; color: var(--mute); }
.email { font-size: 22px; font-weight: 600; }
.email a { color: var(--blue); text-decoration: none; }
.email a:hover { text-decoration: underline; }
h1 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }

/* ————————— Nav ————————— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav-inner { display: flex; align-items: center; gap: 20px; position: relative; }
.nav-word { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: #FFFFFF; flex-shrink: 0; transition: color .3s ease; }
.nav-word span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; flex: 1; justify-content: center; }
.nav-links a { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.82); text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: #FFFFFF; }
.nav-cta { font-size: 13.5px; font-weight: 700; color: #FFFFFF; background: var(--blue); padding: 10px 18px; border-radius: var(--r-sm); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: opacity .2s ease; }
.nav-cta:hover { opacity: 0.9; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; margin-left: auto; }
.nav-toggle span { width: 20px; height: 2px; background: #FFFFFF; display: block; transition: background .3s ease; }

.nav.scrolled, .nav.nav--light {
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.scrolled .nav-word, .nav.nav--light .nav-word { color: var(--ink); }
.nav.scrolled .nav-links a, .nav.nav--light .nav-links a { color: var(--ink); opacity: .72; }
.nav.scrolled .nav-links a:hover, .nav.nav--light .nav-links a:hover,
.nav.scrolled .nav-links a.active, .nav.nav--light .nav-links a.active { opacity: 1; color: var(--blue); }
.nav.scrolled .nav-toggle span, .nav.nav--light .nav-toggle span { background: var(--ink); }

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: calc(100% + 18px); left: 0; right: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
    flex-direction: column; align-items: flex-start; padding: 18px 22px; gap: 16px;
    display: none; box-shadow: 0 16px 40px -16px rgba(0,0,0,0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink) !important; opacity: 1 !important; font-size: 15px; }
  .nav-toggle { display: flex; }
}

/* ————————— Hero ————————— */
.hero {
  position: relative; min-height: 100vh; background: var(--near-black); color: #FFFFFF; overflow: hidden;
  display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 72px;
}
.hero-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; z-index: 2;
}
.hero-copy { max-width: 700px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin: 0 0 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(38px, 6.2vw, 74px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 24px;
}
.hero h1 .arrow { color: rgba(255,255,255,0.3); font-weight: 500; }
.hero .lede { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,0.66); max-width: 500px; margin: 0 auto 36px; }
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  font-size: 15px; font-weight: 700; color: #FFFFFF; background: var(--blue); padding: 14px 26px;
  border-radius: var(--r-sm); text-decoration: none; box-shadow: 0 10px 28px -10px var(--blue-glow);
  transition: transform .2s ease, box-shadow .2s ease; display: inline-block;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -8px var(--blue-glow); }
.btn-ghost {
  font-size: 15px; font-weight: 600; color: #FFFFFF; padding: 13px 22px; border-radius: var(--r-sm);
  text-decoration: none; border: 1px solid rgba(255,255,255,0.24); transition: border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.42); }

/* ————————— Wave signature + phone mockup ————————— */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; width: 100%; margin-top: 56px; padding-bottom: 40px; }
.wave-wrap {
  position: absolute; inset: -35% -20% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 40%, rgba(32,56,232,0.22), transparent 62%);
}
.wave-svg { width: 100%; height: 100%; }
.wave-path { fill: none; stroke-width: 2.2; }
.wave-1 { stroke: url(#waveGrad1); opacity: .55; transform-origin: center; animation: waveDrift1 17s ease-in-out infinite; }
.wave-2 { stroke: url(#waveGrad2); opacity: .38; transform-origin: center; animation: waveDrift2 23s ease-in-out infinite; }
.wave-3 { stroke: url(#waveGrad3); opacity: .24; transform-origin: center; animation: waveDrift3 29s ease-in-out infinite; }
@keyframes waveDrift1 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(2.5%, -2%); } }
@keyframes waveDrift2 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(-3.5%, 2%); } }
@keyframes waveDrift3 { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(4%, 0); } }
@media (prefers-reduced-motion: reduce) { .wave-1, .wave-2, .wave-3 { animation: none; } }

/* Real device frame comes from vendor/devices.css (picturepan2/devices.css,
   MIT). We only scale + position it and re-skin the injected screen
   content below — the bezel/notch/button geometry is untouched. */
.phone-shadow {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 0;
  width: min(230px, 58vw); height: 44px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 72%);
  filter: blur(4px);
}
.device-wrap {
  --scale: 0.7;
  position: relative; z-index: 1;
  width: calc(428px * var(--scale)); height: calc(868px * var(--scale));
}
.device-wrap::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 50%; top: 45%; width: 150%; height: 75%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--blue-glow), transparent 68%);
  filter: blur(36px);
}
.device-wrap .device {
  position: absolute; top: 0; left: 0; transform-origin: top left;
  transform: scale(var(--scale)); animation: phoneFloat 6s ease-in-out infinite;
}
@keyframes phoneFloat {
  0%, 100% { transform: scale(var(--scale)) translateY(0); }
  50% { transform: scale(var(--scale)) translateY(-14px); }
}
@media (prefers-reduced-motion: reduce) { .device-wrap .device { animation: none; } }
@media (max-width: 480px) { .device-wrap { --scale: 0.58; } }
@media (max-width: 360px) { .device-wrap { --scale: 0.5; } }

/* Screen content sits inside devices.css's .device-screen (repurposed from
   its default <img> to a div so live HTML can render inside the frame). */
.device .device-screen { background: var(--paper); color: var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.phone-status { display: flex; justify-content: space-between; padding: 58px 20px 4px; font-size: 12px; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.phone-head { padding: 8px 18px 12px; flex-shrink: 0; }
.phone-head h4 { font-weight: 800; font-size: 19px; margin: 0 0 2px; letter-spacing: -0.01em; }
.phone-head span { font-size: 12px; color: var(--mute); }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 8px; padding: 0 14px 12px; flex: 1; }
.mock-tile { border-radius: 14px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 9px; min-height: 74px; }
.mock-tile span { color: #fff; font-size: 11px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.45); }
.mock-tile.tall { grid-row: span 2; }
.phone-tab { display: flex; justify-content: space-around; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); flex-shrink: 0; }
.phone-tab i { width: 20px; height: 20px; border-radius: 6px; background: var(--line); display: block; }
.phone-tab i.on { background: var(--blue); }
@media (max-width: 640px) {
  .hero-visual { margin-top: 44px; }
}

/* ————————— Sections ————————— */
.section { padding: 120px 0; position: relative; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.section-head { max-width: 620px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p.eyebrow { color: var(--blue); }
.section-head p.eyebrow .dot { background: var(--blue); }
.section-head h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p.sub { font-size: 17px; color: var(--mute); margin: 0; font-weight: 400; }

/* ————————— Features ————————— */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.feature-mock { height: 148px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); overflow: hidden; position: relative; }
.feature-card h3 { font-weight: 700; font-size: 19px; margin: 0; letter-spacing: -0.01em; }
.feature-card p { margin: 0; font-size: 14.5px; color: var(--mute); line-height: 1.55; }

/* mini mockups */
.mock-save { display: flex; align-items: center; gap: 10px; padding: 16px; height: 100%; }
.mock-save .swatch { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.mock-save .lines { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.mock-save .line { height: 8px; border-radius: 4px; background: var(--line); }
.mock-save .line.short { width: 55%; }
.mock-save .badge { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; gap: 5px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 5px 10px 5px 8px; font-size: 11px; font-weight: 700; color: var(--blue); box-shadow: 0 6px 16px -8px rgba(0,0,0,0.2); }
.mock-save .badge .check { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); position: relative; }
.mock-save .badge .check::after { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 8px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(40deg); }

.mock-resurface { height: 100%; position: relative; }
.mock-resurface .photo { position: absolute; inset: 10px 10px 10px; border-radius: 12px; }
.mock-resurface .cap { position: absolute; left: 20px; bottom: 20px; color: #fff; font-size: 11.5px; font-weight: 700; background: rgba(20,20,18,0.5); backdrop-filter: blur(3px); padding: 5px 10px; border-radius: 8px; }
.mock-resurface .pin { position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; border-radius: 50%; background: rgba(20,20,18,0.4); backdrop-filter: blur(3px); }

.mock-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; height: 100%; }
.mock-boards .swatch { border-radius: 9px; }

.mock-shared { height: 100%; position: relative; }
.mock-shared .photo { position: absolute; inset: 10px 10px 10px; border-radius: 12px; }
.mock-shared .pill { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; padding: 5px 10px; border-radius: 20px; }
.mock-shared .avatars { position: absolute; left: 20px; bottom: 20px; display: flex; }
.mock-shared .avatars span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; }
.mock-shared .avatars span:first-child { margin-left: 0; }

/* ————————— How it works ————————— */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .how-grid { grid-template-columns: 1fr; gap: 28px; } }
.how-step { position: relative; }
.how-num { font-weight: 800; font-size: 15px; color: var(--blue); width: 40px; height: 40px; border-radius: 50%; background: rgba(32,56,232,0.08); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.how-step h3 { font-weight: 700; font-size: 18px; margin: 0 0 8px; letter-spacing: -0.01em; }
.how-step p { margin: 0; color: var(--mute); font-size: 14.5px; line-height: 1.55; }
@media (min-width: 761px) {
  .how-step:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 100%; width: 32px; height: 1px; background: var(--line); }
}

/* ————————— Pricing ————————— */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 840px; margin: 0 auto; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--r-md); padding: 36px 32px; position: relative; }
.price-card.pro { box-shadow: 0 0 0 1.5px var(--blue), 0 30px 60px -28px var(--blue-glow); background: linear-gradient(180deg, #FFFFFF 0%, #F4F5FF 100%); }
.price-card.pro::before {
  content: "Most popular"; position: absolute; top: -13px; left: 32px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
}
.price-card h3 { font-weight: 800; font-size: 19px; margin: 0 0 4px; }
.price-amount { font-weight: 800; font-size: 32px; letter-spacing: -0.02em; margin: 10px 0 22px; }
.price-amount span { font-family: -apple-system, sans-serif; font-weight: 400; font-size: 14px; color: var(--mute); }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; }
.price-list li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.price-cta { display: inline-block; text-align: center; width: 100%; padding: 12px 16px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.price-card .price-cta { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.price-card.pro .price-cta { background: var(--blue); color: #FFFFFF; box-shadow: 0 10px 24px -10px var(--blue-glow); }

/* ————————— Footer ————————— */
.site-footer { background: var(--near-black); color: rgba(255,255,255,0.6); padding: 48px 0; }
.site-footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer .nav-word { color: #fff; }
.site-footer-links { display: flex; align-items: center; gap: 20px; font-size: 13.5px; }
.site-footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; }
.site-footer-links a:hover { color: #fff; }

footer.legacy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 13px; }
footer.legacy a { color: var(--mute); text-decoration: none; }
footer.legacy a:hover { color: var(--blue); }

/* ————————— Scroll reveal ————————— */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in-view { opacity: 1; transform: none; }
  .hero-anim { opacity: 0; animation: heroUp .8s cubic-bezier(.2,.8,.2,1) forwards; }
  .hero-anim.d1 { animation-delay: .05s; }
  .hero-anim.d2 { animation-delay: .18s; }
  .hero-anim.d3 { animation-delay: .32s; }
  .hero-anim.d4 { animation-delay: .46s; }
}
@keyframes heroUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

#features, #pricing, #how-it-works { scroll-margin-top: 88px; }
