/* Sonic website. Bolt blue and white, condensed display headings, Inter for
   everything else, the same as the app. Fonts are Latin subsets of the
   app's own files, so the site makes no third-party requests. */

@font-face { font-family: 'Archivo XC'; font-weight: 900; font-display: swap; src: url('/fonts/archivo-xc-black.woff') format('woff'); }
@font-face { font-family: 'Archivo C'; font-weight: 900; font-display: swap; src: url('/fonts/archivo-c-black.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff') format('woff'); }

:root {
  --blue: #1A47FF;
  --blue-deep: #1238E0;
  --ink: #0A1033;
  --slate: #4A5578;
  --tint: #EEF2FF;
  --line: #E1E6F4;
  --on-blue-soft: #DCE5FF;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.6 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.display {
  font-family: 'Archivo XC', 'Arial Narrow', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: .005em;
  margin: 0;
}

/* Header */
.site-header { background: var(--blue); color: #fff; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.nav .brand img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--on-blue-soft); }
.nav a:hover, .nav a[aria-current='page'] { color: #fff; }
@media (max-width: 560px) {
  .nav ul { gap: 18px; }
  .nav a { font-size: 15px; }
  .nav .hide-small { display: none; }
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 14px 28px; border-radius: 999px; line-height: 1.3;
  background: #fff; color: var(--blue);
  font-weight: 600; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 30px rgba(3, 9, 60, .25);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(3, 9, 60, .3); }
.button svg { width: 18px; height: 18px; }
.button.blue { background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(26, 71, 255, .3); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-weight: 500; font-size: 14px;
}
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.pro {
  display: inline-block; vertical-align: .15em;
  font: 900 12px/1 'Archivo C', sans-serif; letter-spacing: .08em;
  padding: 5px 9px 4px; border-radius: 999px;
  background: var(--blue); color: #fff;
}

/* Phone mockups: the app's real screens in a simple frame. */
.phone {
  position: relative;
  width: var(--w, 280px);
  padding: calc(var(--w, 280px) * .03);
  border-radius: calc(var(--w, 280px) * .155);
  background: var(--ink);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .14), inset 0 0 0 3px #1C2559, 0 30px 70px rgba(3, 9, 60, .35);
  flex: none;
}
.phone .screen { position: relative; overflow: hidden; border-radius: calc(var(--w, 280px) * .125); }
.phone .screen::after {
  content: ''; position: absolute; left: 35.7%; top: 1.15%; width: 28.6%; height: 3.87%;
  border-radius: 999px; background: #000;
}

.bolt-bg { position: absolute; pointer-events: none; fill: #fff; opacity: .08; }

/* Hero */
.hero { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; padding-top: 48px; padding-bottom: 0; }
.hero h1 { font-size: clamp(64px, 8.4vw, 150px); margin: 22px 0 26px; }
.hero p.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--on-blue-soft); max-width: 30em; margin: 0 0 34px; }
.hero .note { margin: 16px 0 0; font-size: 14px; color: var(--on-blue-soft); }
.hero .copy { padding-bottom: 96px; }
.hero .phones { position: relative; height: 640px; align-self: end; }
.hero .phones .phone { position: absolute; --w: 300px; }
.hero .phones .one { left: 4%; bottom: -70px; transform: rotate(-7deg); }
.hero .phones .two { right: 2%; bottom: -150px; transform: rotate(7deg); }
.hero .bolt-bg { width: 760px; height: 760px; right: -120px; top: -40px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { font-size: clamp(60px, 16vw, 130px); }
  .hero .copy { padding-bottom: 0; }
  .hero .phones { height: 470px; margin: 0 auto; width: 100%; max-width: 480px; }
  .hero .phones .phone { --w: 220px; }
  .hero .phones .one { left: 2%; bottom: -60px; }
  .hero .phones .two { right: 2%; bottom: -130px; }
}
/* The title is always two lines, "Private at" and "full speed.": it's sized
   by the width of its column, so the longer line ("full speed.", about 4.6
   times the font size) always fits. */
@supports (width: 1cqi) {
  .hero .copy { container-type: inline-size; }
  .hero h1 { white-space: nowrap; font-size: min(150px, 21cqi); }
  @media (max-width: 900px) { .hero h1 { font-size: min(130px, 21cqi); } }
}

/* Feature rows */
.section { padding: 112px 0; }
.section h2 { font-size: clamp(56px, 7vw, 96px); color: var(--blue); }
.section .kicker { color: var(--slate); font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; margin: 20px 0 0; }

.features { display: grid; gap: 120px; margin-top: 88px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.feature .art { position: relative; display: flex; justify-content: center; padding: 56px 0; }
.feature .art::before {
  content: ''; position: absolute; inset: 0 8%; border-radius: 40px; background: var(--tint);
}
.feature .phone { --w: 270px; }
.feature:nth-child(even) .art { order: 2; }
.feature h3 { font-size: clamp(48px, 5.4vw, 76px); color: var(--blue); }
.feature p { color: var(--slate); font-size: 18px; margin: 20px 0 0; max-width: 28em; }
@media (max-width: 820px) {
  .features { gap: 80px; }
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature:nth-child(even) .art { order: 0; }
  .feature .phone { --w: 230px; }
}

/* Free and Pro */
.plans { background: var(--tint); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.plan { background: #fff; border-radius: 28px; padding: 40px; }
.plan.pro-plan { background: var(--blue); color: #fff; }
.plan h3 { font-size: 56px; color: var(--blue); }
.plan.pro-plan h3 { color: #fff; }
.plan .plan-sub { margin: 12px 0 26px; color: var(--slate); }
.plan.pro-plan .plan-sub { color: var(--on-blue-soft); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.plan li svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.plan .fine { margin: 26px 0 0; font-size: 14px; color: var(--slate); }
.plan.pro-plan .fine { color: var(--on-blue-soft); }
@media (max-width: 820px) { .plan-grid { grid-template-columns: 1fr; } .plan { padding: 30px; } }

/* Privacy band */
.band { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.band h2 { color: #fff; }
.band .kicker { color: var(--on-blue-soft); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; position: relative; }
.fact { background: rgba(255, 255, 255, .1); border-radius: 24px; padding: 28px; }
.fact strong { display: block; font: 900 30px/1 'Archivo XC', sans-serif; text-transform: uppercase; margin-bottom: 12px; }
.fact span { color: var(--on-blue-soft); font-size: 16px; }
.band .more { margin-top: 36px; position: relative; }
.band .more a { color: #fff; font-weight: 600; }
.band .bolt-bg { width: 640px; height: 640px; right: -160px; bottom: -200px; top: auto; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 0; margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 19px; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-weight: 500; font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--slate); margin: 14px 0 0; max-width: 46em; }

/* Closing call */
.cta { background: var(--blue); color: #fff; text-align: center; padding: 104px 0; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(64px, 9vw, 136px); color: #fff; }
.cta p { color: var(--on-blue-soft); margin: 20px auto 36px; max-width: 30em; text-wrap: balance; }

/* Store buttons, until the listings are live. White pills like the app's
   buttons, with the condensed black type of its Sonic Pro card. */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: 300px; padding: 12px 30px 12px 24px; border-radius: 999px;
  background: #fff; color: var(--blue); text-align: left;
  box-shadow: 0 10px 30px rgba(3, 9, 60, .22);
}
.store .apple { width: 27px; height: 33px; flex: none; fill: var(--blue); }
.store .play { width: 28px; height: 30px; flex: none; fill: var(--blue); }
.store span { display: flex; flex-direction: column; gap: 4px; }
.store small { font-size: 13px; font-weight: 500; line-height: 1.1; color: var(--slate); }
.store strong { font: 900 25px/1 'Archivo C', sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.cta .stores { justify-content: center; }
a.store { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.store:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(3, 9, 60, .3); }
a.store:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
@media (max-width: 420px) { .store { width: 100%; } }

/* Footer */
.site-footer { background: var(--blue); color: var(--on-blue-soft); font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .16); }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.site-footer img { height: 24px; width: auto; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; color: #fff; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Legal and support pages */
.page-head { background: var(--blue); color: #fff; padding: 40px 0 72px; }
.page-head h1 { font-size: clamp(64px, 9vw, 120px); }
.page-head p { color: var(--on-blue-soft); margin: 18px 0 0; }
.doc { padding: 64px 0 112px; }
.doc .wrap { max-width: calc(780px + 2 * var(--gutter)); }
.doc h2 { font: 900 34px/1 'Archivo XC', sans-serif; text-transform: uppercase; color: var(--blue); margin: 52px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: #2A3354; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; }
.doc a { color: var(--blue); font-weight: 500; }
.contact-card { background: var(--tint); border-radius: 24px; padding: 32px; margin-bottom: 56px; }
.contact-card h2 { margin-top: 0 !important; }
.contact-card .button { margin-top: 10px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .contact-card { padding: 24px; } .contact-card .button { padding: 14px 22px; font-size: 16px; } }

:focus-visible { outline: 3px solid #FFD54A; outline-offset: 3px; border-radius: 6px; }
