/* Symbols landing page: the App Store look on the web. The app's orange dotted page, ink outlines,
   hard offset shadows and cartoon stickers (see symbols-ios/fastlane/framer/style.css). */

:root {
  --ink: #17130f;
  --white: #fffdf8;
  --orange: #ff9a2e;
  --orange-deep: #f26a21;
  --pink: #ff96c6;
  --yellow: #ffd545;
  --mint: #74e2b4;
  --edge: 3px;
  --pop: 6px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  --symbol: -apple-system, "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols 2", "Noto Sans Math", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* The page color behind overscroll and any browser bar that samples the root */
html { scroll-behavior: smooth; background-color: var(--orange); }
body {
  font-family: var(--round);
  color: var(--ink);
  background-color: var(--orange);
  background-image:
    radial-gradient(120% 50% at 50% 0%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 70%),
    radial-gradient(rgba(23, 19, 15, .09) 3px, transparent 3.6px);
  background-size: 100% 1400px, 36px 36px;
  background-repeat: no-repeat, repeat;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- shared sticker bits ---------- */
.tag {
  display: inline-block;
  padding: .28em .9em;
  border: var(--edge) solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 var(--pop) 0 var(--ink);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  transform: rotate(-2deg);
}
.btn {
  display: inline-flex; align-items: center;
  padding: .6em 1.2em;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease;
}
.btn-ink { background: var(--ink); color: var(--white); }
.btn:hover { transform: translateY(-2px); }

.fine { margin-top: 14px; font-weight: 700; font-size: .95rem; opacity: .75; }
.fine.center { text-align: center; padding: 0 20px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  /* Clear at the top of the page, solid once scrolled (nav.js adds .scrolled). It has to be an opaque color, not a
     translucent blur: Safari 26 on iOS ignores theme-color and extends a top fixed/sticky element's background behind
     its floating address bar, and with a translucent nav the page content shows through that strip instead. */
  background-color: transparent;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { background-color: var(--orange); box-shadow: 0 2px 0 rgba(23, 19, 15, .12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em; }
.brand img { border-radius: 10px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 28px; font-weight: 800; }
.nav-links a { text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 70px); display: flex; align-items: center; overflow: hidden; }
.hero-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 40px clamp(20px, 4vw, 48px) 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
}
h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.035em;
  margin-bottom: 28px;
}
.morph {
  display: inline-block;
  white-space: nowrap;
  min-width: 3.2ch;
  font-family: var(--symbol), var(--round);
  letter-spacing: 0;
  color: var(--white);
  -webkit-text-stroke: 0;
  text-shadow: 0 5px 0 var(--ink), 3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 -3px 0 var(--ink), 0 3px 0 var(--ink);
}
.morph .ch { display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.morph .ch.out { transform: translateY(-.25em) scale(.6) rotate(-12deg); opacity: 0; }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink); color: var(--white);
  font-weight: 800; font-size: 1rem;
}
.pills li span { color: var(--orange); font-family: var(--symbol); }

.badges { display: flex; flex-wrap: wrap; gap: 14px; }
.badges.center { justify-content: center; }
.badge { display: block; transition: transform .15s ease; }
.badge img { height: 54px; width: auto; }
.badge:hover { transform: translateY(-3px) rotate(-1deg); }

.hero-device { position: relative; justify-self: center; }

/* ---------- device ---------- */
.phone {
  position: relative;
  width: min(300px, 70vw);
  padding: 9px;
  border-radius: 48px;
  background: #050505;
  box-shadow:
    0 0 0 4px #3a3a3e,
    0 0 0 7px var(--ink),
    0 18px 0 7px rgba(23, 19, 15, .28);
}
.phone img { border-radius: 40px; width: 100%; }
.tilt-r { transform: rotate(3deg); }
.tilt-l { transform: rotate(-3deg); }

/* ---------- stickers ---------- */
.stickers { position: absolute; inset: 0; z-index: 1; }
.sticker, .chip {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  border: var(--edge) solid var(--ink);
  background: var(--fill, var(--white));
  box-shadow: 0 var(--pop) 0 var(--ink);
  font-weight: 800; line-height: 1; white-space: nowrap;
  font-family: var(--symbol);
  user-select: none;
  transition: box-shadow .15s ease, scale .15s ease;
}
.sticker { left: var(--x); top: var(--y); transform: translate(-50%, -50%) rotate(var(--r)); }
.sticker .inner, .chip { will-change: transform; }
.sticker.tile, .chip.tile { width: var(--s, 72px); height: var(--s, 72px); border-radius: calc(var(--s, 72px) * .28); font-size: calc(var(--s, 72px) * .5); }
.sticker.pill, .chip { height: var(--s, 60px); padding: 0 calc(var(--s, 60px) * .38); border-radius: 999px; font-size: calc(var(--s, 60px) * .38); }
.sticker.spark { border: 0; background: none; box-shadow: none; width: var(--s); height: var(--s); }
.sticker.spark svg { width: 100%; height: 100%; overflow: visible; animation: twinkle 2.6s ease-in-out var(--delay) infinite; }
.sticker:hover, .chip:hover { scale: 1.08; box-shadow: 0 calc(var(--pop) + 3px) 0 var(--ink); }
.sticker:active, .chip:active { scale: .96; box-shadow: 0 2px 0 var(--ink); }

/* app.js moves the stickers and the two chips by the phone: a slow wander of their own, and a push away from the
   pointer that springs back. Their transform is set from JS every frame, so no CSS animation runs on them. */
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.72) rotate(20deg); } }

.chip.float-a { --r: -6deg; left: -90px; bottom: 90px; transform: rotate(var(--r)); --s: 58px; z-index: 3; }
.chip.float-b { --r: 8deg; right: -34px; top: 110px; transform: rotate(var(--r)); --s: 78px; z-index: 3; }

/* ---------- sections ---------- */
.section { max-width: 1100px; margin: 0 auto; padding: 90px clamp(20px, 4vw, 48px); }
.head { text-align: center; margin-bottom: 44px; }
h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.035em; line-height: 1; margin-bottom: 18px; }
h3 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; line-height: 1; margin-bottom: 16px; }

.card {
  background: var(--white);
  border: var(--edge) solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 10px 0 var(--ink);
  padding: clamp(18px, 3vw, 32px);
}

/* Fancy text demo */
.fancy { max-width: 760px; margin: 0 auto; }
.field input {
  width: 100%;
  padding: 18px 22px;
  border: var(--edge) solid var(--ink);
  border-radius: 20px;
  background: #fff;
  font: 800 clamp(1.2rem, 3vw, 1.6rem) var(--round);
  color: var(--ink);
  outline: none;
  transition: box-shadow .15s;
}
.field input:focus { box-shadow: 0 0 0 5px var(--orange); }
.tries { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; font-weight: 700; }
.tries span { opacity: .6; margin-right: 4px; }
.try { border: 2px solid var(--ink); background: var(--yellow); border-radius: 999px; padding: 5px 14px; font-weight: 800; }
.try:hover { background: var(--mint); }

.styles { list-style: none; display: grid; gap: 10px; }
.styles button {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  text-align: left;
  transition: transform .15s ease, background .15s, box-shadow .15s;
}
.styles button:hover { transform: translateY(-2px) rotate(-.4deg); background: #fff6e8; box-shadow: 0 4px 0 var(--ink); }
.styles .out { font-family: var(--symbol); font-size: 1.35rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.styles .name { flex-shrink: 0; font-size: .85rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--white); }
.styles .copied .name { background: var(--mint); color: var(--ink); }
.fine.dark { opacity: .65; text-align: center; }

/* Kaomoji marquee */
.marquee { overflow: hidden; padding: 14px 0 22px; margin: 0 calc(50% - 50vw); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 18px; width: max-content; animation: scroll 60s linear infinite; }
.marquee[data-dir="right"] .track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .track { animation-play-state: paused; }
.track .chip { position: static; --s: 64px; font-size: 1.5rem; }
.track .chip:nth-child(odd) { rotate: -2deg; }
.track .chip:nth-child(even) { rotate: 2deg; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Features */
.feature { display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; padding: 50px 0; }
.feature .phone { width: min(280px, 66vw); }
.feature.flip { grid-template-columns: 1fr auto; }
.feature.flip .phone { order: 2; }
.feature-copy p:not(.tag) { margin-top: 26px; font-size: 1.2rem; font-weight: 700; line-height: 1.5; max-width: 30em; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: rgba(23, 19, 15, .1); padding: 1px 6px; border-radius: 6px; }

/* CTA */
.cta { padding: 40px clamp(16px, 4vw, 48px) 100px; }
.cta-inner {
  max-width: 1100px; margin: 0 auto;
  background: var(--ink); color: var(--white);
  border-radius: 40px;
  padding: 70px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(rgba(255, 253, 248, .07) 3px, transparent 3.6px);
  background-size: 36px 36px;
}
.cta-icon { margin: 0 auto 28px; border-radius: 28px; border: 4px solid var(--white); box-shadow: 0 8px 0 var(--orange); }
.cta h2 { color: var(--white); }
.platforms { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.platforms li { padding: 8px 18px; border-radius: 999px; border: 2px solid rgba(255, 253, 248, .3); font-weight: 800; }
.platforms li span { color: var(--orange); margin-right: 4px; }

.footer { display: flex; justify-content: center; gap: 24px; padding: 0 20px 40px; font-weight: 700; opacity: .75; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50;
  translate: -50% calc(100% + 60px);
  padding: 12px 22px;
  border: var(--edge) solid var(--ink);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 var(--pop) 0 var(--ink);
  font-weight: 800;
  max-width: 90vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: translate .3s cubic-bezier(.3, 1.5, .5, 1);
}
.toast.show { translate: -50% 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .9, .3, 1.1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- privacy policy ---------- */
.legal-wrap { max-width: 860px; padding-top: 50px; }
.legal-title { margin-bottom: 18px; }
.legal { font-size: 1.08rem; line-height: 1.6; font-weight: 600; }
.legal .lead { font-size: 1.15rem; font-weight: 700; }
.legal h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); letter-spacing: -.02em; margin: 38px 0 12px; }
.legal p + p, .legal ul + p, .legal .table-scroll + ul { margin-top: 14px; }
.legal ul { margin: 12px 0 0 1.2em; display: grid; gap: 8px; }
.legal li::marker { color: var(--orange-deep); }
.legal strong { font-weight: 900; }
.legal a { color: var(--orange-deep); font-weight: 800; text-underline-offset: 3px; }
.table-scroll { overflow-x: auto; margin: 16px 0 6px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 2px solid rgba(23, 19, 15, .12); text-align: center; white-space: nowrap; }
.legal th:first-child, .legal td:first-child { text-align: left; }
.legal th { font-weight: 900; border-bottom-color: var(--ink); }
.legal td:not(:first-child) { font-weight: 900; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 30px; }
  .pills, .badges { justify-content: center; }
  .chip.float-a { left: -40px; }
  .chip.float-b { right: -20px; }
  .feature, .feature.flip { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 40px; }
  .feature.flip .phone { order: 0; }
  .feature-copy p:not(.tag) { margin-left: auto; margin-right: auto; }
}
@media (max-width: 480px) {
  .chip.float-a { --s: 46px; left: -24px; bottom: 60px; }
  .chip.float-b { --s: 60px; right: -10px; }
  .badge img { height: 46px; }
  .styles .name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- continuous (squircle) corners ----------
   corner-shape: squircle bends each corner like iOS's continuous corners, and borders and shadows follow it.
   A squircle corner looks tighter than a circular one at the same radius, so rounded rectangles get a larger radius
   (about 1.6x) to keep their size. Capsules (pills, tags, buttons) stay circular: capped at half the height, a squircle
   turns them boxy, and iOS capsules have round ends too. Browsers without corner-shape keep the circular corners above. */
@supports (corner-shape: squircle) {
  .phone, .phone img, .sticker.tile, .chip.tile, .brand img, .card, .field input, .styles button, code,
  .cta-inner, .cta-icon {
    corner-shape: squircle;
  }
  .brand img { border-radius: 16px; }
  .phone { border-radius: 76px; }
  .phone img { border-radius: 64px; }
  .sticker.tile, .chip.tile { border-radius: calc(var(--s, 72px) * .5); }
  .card { border-radius: 52px; }
  .field input { border-radius: 32px; }
  .styles button { border-radius: 29px; }
  code { border-radius: 10px; }
  .cta-inner { border-radius: 64px; }
  .cta-icon { border-radius: 45px; }
}
