/* Sipra — getsipra.app
   Shared stylesheet for the landing page and the three pages the app stores
   require: /privacy, /support, /delete-account. */

:root{
  --amber:#B45309; --pink:#BE185D; --purple:#6D28D9;
  --cyan:#0E7490; --green:#047857;
  --ink:#0F172A; --body:#334155; --muted:#475569;
  --surface:#FAFAFC; --line:#DCD8E6;
  --ground:#F1F0F6;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  color:var(--body); line-height:1.6; background:var(--ground);
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }

.wrap{max-width:1080px;margin:0 auto;padding:0 24px}
.wrap-narrow{max-width:760px}
section{padding:88px 0}
h1,h2,h3{
  font-family:'Fraunces',Georgia,'Times New Roman',serif;
  color:var(--ink);line-height:1.12;letter-spacing:-0.018em;
}
h2{font-size:clamp(28px,4vw,40px);font-weight:800;margin-bottom:16px}
h3{font-size:20px;font-weight:800;margin-bottom:8px}
p{font-size:17px}
.lede{font-size:19px;color:var(--muted);max-width:620px}
a{color:var(--purple)}
strong{color:var(--ink)}

/* ---------------------------------------------------------------- nav ---- */
nav{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
}
.nav-in{display:flex;align-items:center;justify-content:space-between;
  max-width:1080px;margin:0 auto;padding:14px 24px;gap:12px}
.logo{display:flex;align-items:center;gap:9px;font-size:22px;font-weight:800;
  color:var(--ink);text-decoration:none;white-space:nowrap}
.mark{width:32px;height:32px;border-radius:10px;flex:none;
  background:linear-gradient(135deg,#5B21B6,#3B0A6B);
  display:flex;align-items:center;justify-content:center}
.mark svg{width:23px;height:23px}
/* 'Sip' and 'ra' are separate flex items without this wrapper, so the
   9px gap opens a hole in the middle of the wordmark. */
.logo .word{display:inline-block;white-space:nowrap}
.logo .ra{color:var(--pink)}
.nav-links{display:flex;gap:26px;align-items:center}
.nav-links a{color:var(--muted);text-decoration:none;font-size:15px;font-weight:600}
.nav-links a:hover{color:var(--ink)}
.nav-links a[aria-current="page"]{color:var(--ink)}
@media(max-width:760px){
  .nav-links{gap:14px}
  .nav-links a{font-size:14px}
}
@media(max-width:560px){
  .nav-links a:not(.btn-sm){display:none}
}
.btn-sm{background:var(--purple);color:#fff!important;padding:9px 18px;
  border-radius:10px;font-size:14px}

/* --------------------------------------------------------------- hero ---- */
.hero{
  background:linear-gradient(135deg,#ECEAF4 0%,#E4E1F0 55%,#E7ECF3 100%);
  padding:96px 0 104px;
}
.hero h1{font-size:clamp(30px,5.4vw,56px);font-weight:800;margin-bottom:20px;max-width:22ch;text-wrap:balance}
.hero .lede{font-size:20px;color:#1E293B;margin-bottom:32px}
.pill{display:inline-block;background:rgba(255,255,255,.75);color:var(--purple);
  padding:7px 16px;border-radius:99px;font-size:14px;font-weight:700;margin-bottom:22px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.btn{display:inline-block;padding:15px 30px;border-radius:14px;font-weight:800;
  font-size:16px;text-decoration:none;border:none;cursor:pointer;font-family:inherit}
.btn-primary{background:var(--purple);color:#fff}
.btn-primary:hover{background:#5B21B6;color:#fff}
.btn-ghost{background:#fff;color:var(--ink)}
.btn-ghost:hover{color:var(--ink)}
.note{font-size:14px;color:var(--muted);margin-top:14px}

/* page header for the non-marketing pages */
.pagehead{background:var(--surface);border-bottom:1px solid var(--line);padding:56px 0 44px}
.pagehead h1{font-size:clamp(30px,4.6vw,44px);font-weight:800;margin-bottom:10px}
.pagehead .updated{font-size:14px;color:var(--muted)}

/* ------------------------------------------------------------ content ---- */
.quote{
  border-left:4px solid var(--pink);padding-left:22px;
  font-size:clamp(21px,3vw,28px);font-weight:700;color:var(--ink);
  line-height:1.4;max-width:680px;margin-bottom:24px;
}
.grid3{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-top:36px}
.card{padding:26px;border-radius:18px;background:var(--surface)}
.card p{font-size:15px;color:var(--muted)}
.card p + p{margin-top:10px}
.tag{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.06em;
  padding:5px 11px;border-radius:99px;margin-bottom:12px}
.t-cyan{background:rgba(14,116,144,.13);color:var(--cyan)}
.t-amber{background:rgba(180,83,9,.13);color:var(--amber)}
.t-green{background:rgba(4,120,87,.13);color:var(--green)}

.steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}
.steps > .step:last-child{grid-column:1 / -1}
@media (max-width:720px){.steps{grid-template-columns:1fr}.steps > .step:last-child{grid-column:auto}}
.step{display:flex;gap:18px;align-items:flex-start;padding:20px;
  background:var(--surface);border-radius:16px}
.num{flex:0 0 34px;height:34px;border-radius:50%;background:var(--purple);
  color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:15px}
.step p{font-size:15px;color:var(--muted);margin-top:2px}

.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:44px;margin-top:36px}
.split ul{list-style:none}
.split li{padding:11px 0 11px 30px;position:relative;font-size:16px}
.split li::before{content:"";position:absolute;left:0;top:19px;width:9px;height:9px;
  border-radius:50%;background:var(--green)}
.split .no li::before{background:var(--line)}
.split h3{margin-bottom:6px}

/* ------------------------------------------------------------- signup ---- */
.signup{background:var(--ink);color:#fff;border-radius:24px;padding:52px 40px;text-align:center}
.signup h2{color:#fff}
.signup p{color:#CBD5E1;max-width:520px;margin:0 auto 26px}
.signup .fine{font-size:13px;color:#94A3B8;margin-top:18px;margin-bottom:0}
.signup .btn-primary{background:#7C3AED}
.signup .btn-primary:hover{background:#6D28D9}

/* -------------------------------------------------------------- legal ---- */
.legal h2{margin-top:44px;font-size:clamp(24px,3.2vw,30px)}
.legal h2:first-of-type{margin-top:0}
.legal h3{margin-top:26px;font-size:18px}
.legal p{margin-bottom:14px}
.legal ul{margin:12px 0 18px 20px}
.legal li{padding:4px 0;font-size:16px}
.legal .callout{
  background:var(--surface);border-left:4px solid var(--purple);
  padding:20px 24px;border-radius:0 14px 14px 0;margin:24px 0;
}
.legal .callout p:last-child{margin-bottom:0}

/* Wide tables scroll inside their own box; the page never scrolls sideways. */
.tablewrap{overflow-x:auto;margin:20px 0;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;min-width:460px;font-size:15px}
th,td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--line)}
th{color:var(--ink);font-weight:800;font-size:13px;letter-spacing:.05em;text-transform:uppercase}
tbody tr:last-child td{border-bottom:0}

/* ------------------------------------------------------------- footer ---- */
footer{padding:44px 0;border-top:1px solid var(--line);
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;
  font-size:14px;color:var(--muted)}
footer a{color:var(--muted);text-decoration:none;margin-left:20px}
footer a:first-child{margin-left:0}
footer a:hover{color:var(--ink)}
@media(max-width:560px){
  footer a{margin-left:0;margin-right:18px;display:inline-block}
}
.entity{flex-basis:100%;margin:0;font-size:13px;color:var(--muted)}

:focus-visible{outline:3px solid var(--purple);outline-offset:2px}

/* ---- TestFlight beta ---- */
.beta-cta{display:inline-flex;align-items:center;gap:10px;
  background:var(--purple);color:#fff;text-decoration:none;
  padding:15px 28px;border-radius:14px;font-weight:700;font-size:16px;
  transition:transform .12s ease,box-shadow .12s ease}
.beta-cta:hover{transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(109,40,217,.28)}
.beta-note{font-size:14px;color:var(--muted);margin-top:14px;max-width:46ch}
.beta-steps{list-style:none;padding:0;margin:14px 0 0;
  font-size:15px;color:var(--body);max-width:46ch}
.beta-steps li{padding:6px 0 6px 26px;position:relative}
.beta-steps li::before{content:"";position:absolute;left:0;top:14px;
  width:8px;height:8px;border-radius:50%;background:var(--purple)}

/* ---- App screenshots ---- */
.shots{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:32px;
  margin-top:32px;
}
.shot{min-width:0;margin:0}
.shot img{
  width:100%;height:auto;display:block;
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow:0 2px 18px rgba(15,23,42,.08);
  background:#fff;
}
.shot figcaption{
  margin-top:14px;
  font-size:15.5px;
  line-height:1.55;
  color:var(--muted);
}


/* ---- hero split: welcome screen left, message and CTA right ---- */
.hero-split{
  display:grid;
  grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);
  gap:56px;
  align-items:center;
}
.hero-shot{order:-1}   /* image left, copy right, while keeping the headline first in the DOM */
.hero-copy{min-width:0}
.hero-copy .lede{margin-bottom:28px}
.hero-shot{
  min-width:0;
  display:flex;flex-direction:column;align-items:flex-start;
}
.hero-shot img{
  width:auto;
  max-width:100%;
  max-height:500px;          /* scales to sit level with the headline + button block */
  height:auto;
  border-radius:20px;
  border:3pt solid #000;
  box-shadow:0 18px 44px rgba(15,23,42,.16);
}
@media (max-width:900px){
  .hero-split{grid-template-columns:1fr;gap:40px}
  .hero-shot{order:0;align-items:center;margin-left:0}
  .hero-shot img{max-height:360px}
  .hero-bubble{margin-left:auto;margin-right:auto}
}

/* ---- screenshot grid: two full rows of three ---- */
@media (max-width:900px){
  .shots{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
}
@media (max-width:620px){
  .shots{grid-template-columns:1fr;gap:28px}
}


/* ---- hero: shift the screen left of the column, bubble beneath ---- */
@media (min-width:1240px){ .hero-shot{margin-left:-72px} }   /* ~3/4 inch */
@media (min-width:901px) and (max-width:1239px){ .hero-shot{margin-left:-24px} }

.hero-bubble{
  position:relative;
  margin:22px 0 0;
  max-width:300px;
  background:#fff;
  color:var(--ink);
  border:2.5pt solid var(--purple);
  border-radius:16px;
  padding:13px 18px;
  font-size:15px;
  font-weight:700;
  line-height:1.4;
  box-shadow:0 8px 22px rgba(15,23,42,.12);
}
.hero-bubble::before{
  content:"";position:absolute;top:-8px;left:34px;
  width:14px;height:14px;background:#fff;
  border-left:2.5pt solid var(--purple);
  border-top:2.5pt solid var(--purple);
  border-radius:3px 0 0 0;
  transform:rotate(45deg);
}
@media (max-width:900px){ .hero-bubble::before{left:50%;margin-left:-7px} }

/* ---- screenshot frames ---- */
.shot img{
  border:3pt solid #000;
  transition:transform .32s ease, box-shadow .32s ease;
}
.shot:hover img{
  transform:translateY(-6px);
  box-shadow:0 16px 36px rgba(15,23,42,.16);
}

/* ---- closing block: smaller, pushed right ---- */
.signup{
  max-width:680px;
  margin-left:auto;margin-right:0;
  padding:42px 38px;
}
.signup h2{font-size:clamp(24px,3.1vw,33px)}
.signup p{margin-left:0;margin-right:0;max-width:none}
@media (max-width:900px){
  .signup{max-width:none;margin-right:auto;padding:38px 26px}
}

/* ---- motion ---- */
.js .reveal{opacity:0;transform:translateY(16px);transition:opacity .62s ease,transform .62s ease}
.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  .js .reveal{opacity:1!important;transform:none!important;transition:none}
  .shot img{transition:none}
  .shot:hover img{transform:none}
}
.btn{transition:transform .18s ease, background .18s ease}
.btn-primary:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}

/* ---- sticky download bar, phones only ---- */
.sticky-cta{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  backdrop-filter:saturate(1.6) blur(10px);
  box-shadow:0 -6px 20px rgba(15,23,42,.08);
}
.sticky-cta .btn{display:block;width:100%;text-align:center;padding:14px 20px}
@media (min-width:701px){ .sticky-cta{display:none!important} }


/* ---- closing section: paywall left, call to action right ---- */
.close-split{
  display:grid;
  grid-template-columns:minmax(0,0.42fr) minmax(0,1fr);
  gap:48px;
  align-items:center;
}
.close-shot{min-width:0;display:flex;justify-content:flex-start}
.close-shot img{
  width:auto;max-width:100%;
  max-height:430px;height:auto;
  border-radius:20px;
  border:3pt solid #000;
  box-shadow:0 18px 44px rgba(15,23,42,.16);
  transition:transform .32s ease, box-shadow .32s ease;
}
.close-shot img:hover{transform:translateY(-6px);box-shadow:0 22px 50px rgba(15,23,42,.20)}
.close-split .signup{max-width:none;margin:0}
@media (max-width:900px){
  .close-split{grid-template-columns:1fr;gap:32px}
  .close-shot{justify-content:center;order:2}
  .close-shot img{max-height:360px}
}
@media (prefers-reduced-motion:reduce){
  .close-shot img{transition:none}
  .close-shot img:hover{transform:none}
}


/* ---- screenshot grid: smaller frames, black captions ---- */
.shot{display:flex;flex-direction:column;align-items:center}
.shot img{max-width:260px;align-self:center}
.shot figcaption{color:var(--ink);font-weight:500;text-align:left;align-self:stretch}

/* ---- hero screen: bigger, and it breathes ---- */
@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
.hero-shot img{animation:heroFloat 6.5s ease-in-out infinite;will-change:transform}
.hero-shot img:hover{animation-play-state:paused}

/* ---- bubble: smaller ---- */
.hero-bubble{
  max-width:232px;
  padding:10px 14px;
  font-size:13.5px;
  border-radius:13px;
  margin-top:18px;
}

/* ---- dynamic panels ---- */
.panel{
  position:relative;
  background:#fff;
  border-radius:24px;
  padding:40px 36px;
  box-shadow:0 10px 30px rgba(15,23,42,.06);
}
.panel::before{
  content:"";
  position:absolute;inset:0;
  border-radius:inherit;
  padding:2.5pt;
  background:linear-gradient(115deg,
    var(--purple) 0%, var(--pink) 22%, var(--amber) 44%,
    var(--green) 66%, var(--cyan) 84%, var(--purple) 100%);
  background-size:320% 320%;
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
          mask-composite:exclude;
  animation:panelFlow 16s linear infinite;
  pointer-events:none;
}
@keyframes panelFlow{
  0%{background-position:0% 50%}
  100%{background-position:320% 50%}
}
.panel h2:first-child{margin-top:0}
@media (max-width:720px){ .panel{padding:28px 20px;border-radius:18px} }

@media (prefers-reduced-motion:reduce){
  .hero-shot img{animation:none}
  .panel::before{animation:none}
}
