/* =========================================================
   Dueline — marketing site styles
   Identity: bold golden-yellow accent on deep navy,
   warm off-white content sections. Cohesive with the
   App Store icon (yellow calendar + navy check).
   ========================================================= */

:root {
  --ink:        #13151E;   /* deep navy-black background     */
  --ink-2:      #1B1E2B;   /* elevated navy surface          */
  --ink-3:      #262A3A;   /* hairlines / borders on dark    */
  --paper:      #FBFAF6;   /* warm off-white page bg         */
  --paper-2:    #FFFFFF;   /* cards on light                 */
  --paper-line: #ECE9DF;   /* hairlines on light             */

  --accent:     #FFD21A;   /* brand yellow (icon)            */
  --accent-600: #FFC400;   /* deeper yellow for hovers       */
  --accent-ink: #2A2100;   /* text on yellow                 */

  --t-hi:       #F3F4F8;   /* primary text on dark           */
  --t-lo:       #9AA0B2;   /* muted text on dark             */
  --l-hi:       #15171F;   /* primary text on light          */
  --l-lo:       #5A6172;   /* muted text on light            */

  /* app category accents (used sparingly as feature chips) */
  --c-purple: #6C63FF;
  --c-cyan:   #00C2E8;
  --c-green:  #00C566;
  --c-orange: #FF9F1C;
  --c-pink:   #FF4FCB;
  --c-red:    #FF5A5F;

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1120px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--l-hi);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--l-lo);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent-600); border-radius: 2px;
}
.eyebrow.on-dark { color: var(--accent); }
.eyebrow.on-dark::before { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15px; padding: 13px 22px;
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -8px rgba(255,210,26,.6); }
.btn-primary:hover { background: var(--accent-600); }
.btn-ghost { background: transparent; color: var(--t-hi); border-color: var(--ink-3); }
.btn-ghost:hover { border-color: var(--t-lo); }
.btn-ghost.on-light { color: var(--l-hi); border-color: var(--paper-line); }
.btn-ghost.on-light:hover { border-color: var(--l-lo); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19,21,30,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--ink-3);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--t-hi); font-weight: 800; letter-spacing: -.02em; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--t-lo); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--t-hi); background: rgba(255,255,255,.05); }
.nav-links a.cta { color: var(--accent-ink); background: var(--accent); }
.nav-links a.cta:hover { background: var(--accent-600); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--t-hi);
  padding: 84px 0 96px;
}
.hero::before { /* dotted grid */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero::after { /* yellow glow */
  content: ""; position: absolute; top: -160px; right: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,210,26,.22), transparent 62%);
  filter: blur(6px); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); color: #fff; margin: 18px 0 20px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: clamp(17px, 2vw, 19px); color: var(--t-lo); max-width: 34ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta div { font-size: 14px; color: var(--t-lo); display: flex; align-items: center; gap: 8px; }
.hero-meta b { color: var(--t-hi); font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,210,26,.18); }

/* phone in hero */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: 340px; transform: rotate(3deg); }
.hero-visual .phone.back {
  width: 300px; position: absolute; left: 0; top: 44px; transform: rotate(-8deg);
  opacity: .55; z-index: -1;
}

/* ---------- Phone mockup ---------- */
.phone {
  width: 264px; aspect-ratio: 390 / 844;
  /* titanium-style outer rail */
  background: linear-gradient(150deg, #3A3C45 0%, #191A20 40%, #0B0C10 100%);
  border-radius: 48px; padding: 13px;
  position: relative;
  box-shadow:
    0 50px 90px -34px rgba(0,0,0,.72),
    0 14px 30px -16px rgba(0,0,0,.55),
    inset 0 1px 1px rgba(255,255,255,.18),
    inset 0 0 0 1.5px rgba(255,255,255,.10);
}
.phone::after { /* black bezel between rail and screen */
  content: ""; position: absolute; inset: 7px; border-radius: 41px;
  background: #050609; z-index: 1;
}
/* Dynamic Island is part of the real screenshots, so the frame doesn't draw one. */
.phone .screen {
  width: 100%; height: 100%; border-radius: 35px; overflow: hidden; background: #fff;
  position: relative; z-index: 2;
}
.phone .screen img, .phone .screen svg { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 14px 0 14px; }
.section-head p { font-size: 17.5px; color: var(--l-lo); margin: 0; }

/* trust strip */
.trust { background: var(--ink); color: var(--t-lo); border-top: 1px solid var(--ink-3); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; padding-top: 26px; padding-bottom: 26px; }
.trust span { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; }
.trust svg { color: var(--accent); flex: none; }

/* features */
.features { background: var(--paper); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.feat:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(20,20,40,.35); border-color: #e2ddce; }
.feat .chip {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  color: #fff;
}
.feat h3 { font-size: 18.5px; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--l-lo); font-size: 15px; }

/* showcase / screenshots */
.showcase { background: var(--ink); color: var(--t-hi); }
.showcase .section-head h2 { color: #fff; }
.showcase .section-head p { color: var(--t-lo); }
/* 2x2 grid of large phones — big enough to stay crisp on standard-DPI screens */
.shots {
  display: flex; flex-wrap: wrap; gap: 40px 44px;
  justify-content: center; align-items: flex-start;
  max-width: 760px; margin: 0 auto;
}
.shots .phone { width: 318px; }
.shot-cap { text-align: center; margin-top: 16px; font-size: 14px; color: var(--t-lo); font-weight: 600; }
.shot-col { display: flex; flex-direction: column; align-items: center; }

/* privacy band */
.privacy-band { background: var(--paper); }
.pb-card {
  background: linear-gradient(140deg, #15171F 0%, #20232F 100%);
  border-radius: 26px; padding: 56px; color: var(--t-hi); position: relative; overflow: hidden;
}
.pb-card::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,210,26,.16), transparent 60%);
}
.pb-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pb-card h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; margin-bottom: 16px; }
.pb-card p { color: var(--t-lo); font-size: 16.5px; margin: 0 0 24px; }
.pb-list { display: grid; gap: 14px; }
.pb-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--t-hi); }
.pb-list svg { color: var(--accent); flex: none; margin-top: 2px; }
ul.pb-list { padding: 0; margin: 0; }

/* CTA */
.cta-band { background: var(--accent); color: var(--accent-ink); text-align: center; }
.cta-band .wrap { padding: 76px 24px; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
.cta-band p { font-size: 18px; margin: 0 auto 30px; max-width: 46ch; color: #4a3d05; font-weight: 500; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

/* ---------- Content pages (privacy / support) ---------- */
.page-hero { background: var(--ink); color: var(--t-hi); padding: 70px 0 56px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; top: -140px; right: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,210,26,.18), transparent 62%);
}
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); color: #fff; margin: 14px 0 12px; position: relative; z-index: 2; }
.page-hero p { color: var(--t-lo); margin: 0; position: relative; z-index: 2; font-size: 16.5px; }

.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: #363b49; font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 8px; }
.doc a { color: #6b5a00; font-weight: 600; border-bottom: 1px solid rgba(107,90,0,.3); }
.doc a:hover { border-color: #6b5a00; }
.doc .lead { font-size: 18px; color: var(--l-lo); }
.callout {
  background: var(--paper-2); border: 1px solid var(--paper-line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 18px 20px; margin: 24px 0;
}
.callout p { margin: 0; }

/* support cards */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.support-card {
  background: var(--paper-2); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 28px;
}
.support-card .chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; margin-bottom: 16px; }
.support-card h3 { font-size: 18px; margin-bottom: 8px; }
.support-card p { margin: 0 0 14px; color: var(--l-lo); font-size: 15px; }
.support-card a.link { color: var(--l-hi); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.support-card a.link:hover { color: var(--accent-600); }

/* FAQ */
.faq { margin-top: 40px; }
.faq details {
  border: 1px solid var(--paper-line); border-radius: var(--radius-sm); background: var(--paper-2);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 16px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--l-lo); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--l-lo); font-size: 15.5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--t-lo); border-top: 1px solid var(--ink-3); padding: 54px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { font-size: 14px; color: var(--t-lo); margin: 0; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { color: var(--t-hi); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.foot-col a { display: block; color: var(--t-lo); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--accent); }
.foot-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-3);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: #6b7186;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-visual .phone.back { display: none; }
  .hero-visual .phone { transform: rotate(0); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .pb-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .shots .phone:nth-child(2) { transform: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    background: var(--ink-2); padding: 12px; gap: 4px; border-bottom: 1px solid var(--ink-3);
  }
  .nav-links.open a { padding: 12px; }
  .nav-toggle {
    display: inline-flex; background: transparent; border: 1px solid var(--ink-3); color: var(--t-hi);
    width: 42px; height: 42px; border-radius: 11px; align-items: center; justify-content: center; cursor: pointer;
  }
  .section { padding: 64px 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .pb-card { padding: 34px 24px; }
  .foot-cols { gap: 36px; }
}
