/* cutveymeter.com — the app's own instrument palette (RootView.swift / MeterSignInTheme.swift). */
:root {
  --ink: #0B0A10;
  --raised: #1A1824;
  --text: #F4F3F8;
  --secondary: #8C86A6;
  --tertiary: #7E7899;
  --quaternary: #4E4963;
  --hairline: rgba(244, 243, 248, 0.14);
  --edge: rgba(244, 243, 248, 0.10);
  --glass: rgba(244, 243, 248, 0.06);
  --panel: rgba(244, 243, 248, 0.04);
  --accent: #6A4BF7;
  --accent-text: #A794FF;
  --accent-soft: #C9BCFF;
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-soft); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }

.page { position: relative; overflow: hidden; }
.glow {
  position: absolute; left: 50%; top: -320px; width: 960px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(106, 75, 247, 0.30) 0%, rgba(106, 75, 247, 0) 55%);
  pointer-events: none;
}
.grain {
  position: absolute; inset: 0; opacity: 0.05; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.35 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
.wrap { position: relative; width: min(1248px, 100% - 48px); margin: 0 auto; }

/* Eyebrows, buttons */
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.24em; color: var(--accent-text); text-transform: uppercase; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 26px; border-radius: 999px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  transition: transform 120ms ease, background 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--text); color: var(--ink); }
.btn-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--text); }
.btn-dark:hover { background: #1A1824; color: var(--text); }
.btn-accent { background: var(--accent); color: var(--text); height: 44px; padding: 0 20px; font-size: 15px; gap: 10px; }
.btn-accent:hover { background: #7A5DFF; color: var(--text); }
.btn svg { flex: none; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; }
.lockup { display: flex; align-items: center; gap: 14px; color: var(--text); }
.lockup .word { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.lockup .bar { width: 1px; height: 22px; background: rgba(244, 243, 248, 0.22); }
.lockup .app { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.22em; color: var(--accent-text); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a.link { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--secondary); }
.nav-links a.link:hover, .nav-links a.link.current { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; padding-top: 72px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.hero h1 { font-size: clamp(48px, 5.8vw, 84px); line-height: 1.0; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.lede { font-size: 21px; line-height: 1.45; color: var(--secondary); max-width: 500px; text-wrap: pretty; }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 8px; flex-wrap: wrap; }
.price-note { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--tertiary); }
.hero-art { position: relative; height: 760px; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
.hero-art .halo { position: absolute; left: 50%; top: 80px; width: 420px; height: 420px; transform: translateX(-60%); background: radial-gradient(ellipse at center, rgba(106, 75, 247, 0.35) 0%, rgba(106, 75, 247, 0) 60%); pointer-events: none; }
.hero-art img { position: relative; width: 500px; height: auto; border-radius: 4px; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 48px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.fact { display: flex; flex-direction: column; gap: 10px; padding: 32px; }
.fact:first-child { padding-left: 0; }
.fact:last-child { padding-right: 0; }
.fact + .fact { border-left: 1px solid var(--hairline); }
.fact .eyebrow { letter-spacing: 0.2em; }
.fact p { font-size: 20px; line-height: 1.35; }

/* Features */
.features { display: flex; flex-direction: column; padding-top: 120px; }
.feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: center; padding-bottom: 120px; }
.feature-copy { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.feature h2 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.feature p { font-size: 19px; line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.checks { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: center; gap: 12px; font-size: 17px; }
.checks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 6px; background: var(--accent); flex: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F3F8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
  background-size: 13px 13px; background-position: center; background-repeat: no-repeat;
}
.shot { display: flex; justify-content: center; height: 620px; overflow: hidden; border-radius: 28px; background: var(--panel); border: 1px solid var(--edge); }
.shot img { width: 400px; height: auto; margin-top: 28px; }
.feature.flip .shot { order: -1; }

/* Honest */
.honest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding: 64px 72px; border-radius: 28px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--edge); }
.honest h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.06; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; margin-top: 18px; }
.honest p { font-size: 19px; line-height: 1.55; color: var(--secondary); text-wrap: pretty; }

/* iPad */
.ipad { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 140px; text-align: center; }
.ipad h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; font-weight: 700; letter-spacing: -0.025em; max-width: 760px; text-wrap: balance; }
.ipad p { font-size: 19px; line-height: 1.5; color: var(--secondary); max-width: 620px; text-wrap: pretty; }
.ipad img { width: min(1040px, 100%); margin-top: 24px; border-radius: 6px; }

/* Unlock */
.unlock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding-top: 140px; }
.card { display: flex; flex-direction: column; gap: 22px; padding: 48px; border-radius: 28px; }
.card-light { background: var(--text); color: var(--ink); }
.card-light .eyebrow { color: var(--accent); }
.card-light p { color: var(--quaternary); }
.card-glass { background: var(--glass); border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--edge); }
.card-glass p { color: var(--secondary); }
.card p { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.price { display: flex; align-items: baseline; gap: 10px; }
.price .amount { font-size: clamp(56px, 5vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.035em; }
.price .once { font-family: var(--mono); font-size: 14px; color: #6E6889; }
.card h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.textlink { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin-top: 8px; }

/* Footer */
.footer { margin-top: 140px; padding: 48px 0 56px; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .lockup .word { font-size: 20px; }
.footer .lockup .app { font-size: 11px; }
.footer .legal { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--tertiary); }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .head { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; color: var(--secondary); }
.footer-col a { font-size: 15px; color: var(--text); }
.footer-col a:hover { color: var(--accent-soft); }
.footer-col a small { display: block; font-size: 12px; color: var(--tertiary); margin-top: 2px; }

/* Support page */
.support-head { display: flex; flex-direction: column; gap: 20px; padding-top: 72px; max-width: 720px; }
.support-head h1 { font-size: clamp(44px, 5vw, 72px); line-height: 1.0; font-weight: 700; letter-spacing: -0.03em; }
.support-head p { font-size: 20px; line-height: 1.5; color: var(--secondary); text-wrap: pretty; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 80px; padding-top: 72px; align-items: start; }
.faq { border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 0; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 16px; height: 16px; flex: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C86A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-size: contain; transition: transform 160ms ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 0 26px; font-size: 16px; line-height: 1.55; color: var(--secondary); }
.form-card { display: flex; flex-direction: column; gap: 22px; padding: 40px; border-radius: 28px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: inset 0 1px 0 var(--edge); }
.form-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; }
.form-card .sub { font-size: 15px; line-height: 1.5; color: var(--secondary); margin-top: 6px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--secondary); text-transform: uppercase; }
.field .help { font-size: 13px; line-height: 1.5; color: var(--secondary); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--glass); border: 1px solid var(--hairline); border-radius: 12px; padding: 0 16px; height: 48px; outline: none;
}
.field textarea { height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C86A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
.field select option { color: #0B0A10; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(106, 75, 247, 0.25); }
.field input::placeholder, .field textarea::placeholder { color: var(--tertiary); }
.field input[type="file"] { height: auto; padding: 14px 16px; border-style: dashed; border-color: rgba(244, 243, 248, 0.22); font-size: 14px; color: var(--tertiary); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 6px; border: 0; cursor: pointer; font-family: var(--display); }
.notice { display: none; padding: 16px 18px; border-radius: 12px; font-size: 15px; line-height: 1.5; border: 1px solid var(--hairline); }
.notice.show { display: block; }
.notice.ok { background: rgba(48, 209, 88, 0.10); border-color: rgba(48, 209, 88, 0.35); }
.notice.err { background: rgba(255, 69, 58, 0.10); border-color: rgba(255, 69, 58, 0.35); }
.other { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 96px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.other .fact p { font-size: 18px; line-height: 1.4; }

/* Responsive */
@media (max-width: 1000px) {
  .hero, .feature, .honest, .unlock, .support-grid { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .shot { order: 0; }
  .feature { gap: 32px; padding-bottom: 88px; }
  .hero-art { height: auto; overflow: visible; }
  .hero-art img { width: min(500px, 100%); }
  .honest { padding: 40px 32px; gap: 24px; }
  .honest h2 { margin-top: 0; }
  .facts, .other { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 22px 0 !important; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--hairline); }
  .shot { height: 460px; }
  .shot img { width: 300px; margin-top: 20px; }
  .nav-links a.link { display: none; }
  .nav-links a.link.current { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: min(1248px, 100% - 40px); }
  .nav { padding: 20px 0; }
  .lockup .word { font-size: 22px; }
  .lockup .bar { display: none; }
  .lockup .app { font-size: 11px; }
  .btn-accent { height: 40px; padding: 0 16px; font-size: 14px; }
  .btn-accent span.long { display: none; }
  .hero { padding-top: 48px; gap: 24px; }
  .lede { font-size: 17px; }
  .cta-row .btn { width: 100%; }
  .price-note { width: 100%; text-align: center; }
  .features { padding-top: 72px; }
  .feature h2 { font-size: 34px; }
  .feature p { font-size: 16px; }
  .shot { height: 420px; border-radius: 22px; }
  .shot img { width: 270px; }
  .ipad, .unlock { padding-top: 72px; }
  .card { padding: 32px; border-radius: 22px; }
  .card .btn { align-self: stretch; }
  .footer { margin-top: 72px; }
  .footer-cols { gap: 32px; }
  .form-card { padding: 24px; }
}
