/* Illyria website: shared styles for every page */

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e8e6e1;
  --bg: #ffffff;
  --accent: #6e2e33;
  --bezel: #1c1c1e;
  --bezel-edge: #3a3a3c;
  --floor: rgba(0, 0, 0, .18);
  --icon: #6e6e73;
  --pop: #b0303c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --bg: #111111;
    --accent: #d98a8f;
    --bezel: #2a2a2c;
    --bezel-edge: #4a4a4e;
    --floor: rgba(0, 0, 0, .6);
  --icon: #8e8e93;
  --pop: #ec6f78;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.col { max-width: 560px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.wide { max-width: 800px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* Header */
header { text-align: center; padding-top: 96px; }
.icon {
  width: 112px; height: 112px; border-radius: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 6px 18px rgba(0,0,0,.08);
}
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin: 22px 0 6px; font-weight: 700; }
.tagline { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.badge {
  display: inline-block; padding: 10px 20px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px;
}
.fine { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Angled phone mockups */
.stage {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 1600px;
  margin: 36px auto 0;
  padding: 30px 0 70px;
  max-width: 800px;
}
.phone {
  --w: clamp(112px, 27vw, 220px);
  position: relative;
  width: var(--w);
  aspect-ratio: 603 / 1311;
  padding: calc(var(--w) * .035);
  border-radius: calc(var(--w) * .17);
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1.5px var(--bezel-edge),
    0 2px 4px rgba(0,0,0,.15),
    0 30px 60px -10px rgba(0,0,0,.35);
  transform-style: preserve-3d;
  flex: none;
}
.phone img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w) * .135);
}
/* Dynamic Island */
.phone::before {
  content: ""; position: absolute; z-index: 1;
  top: calc(var(--w) * .058); left: 50%;
  width: calc(var(--w) * .29); height: calc(var(--w) * .085);
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
/* Soft reflection-free floor shadow */
.phone::after {
  content: ""; position: absolute; left: 10%; right: 10%; bottom: -34px; height: 22px;
  background: radial-gradient(ellipse at center, var(--floor), transparent 70%);
  filter: blur(4px);
  transform: translateZ(-1px);
}
.phone.left  { transform: rotateY(32deg) rotateZ(-2deg) translateX(calc(var(--w) * .38)) translateZ(-90px); z-index: 1; }
.phone.mid   { transform: translateY(-14px) translateZ(40px); z-index: 2; }
.phone.right { transform: rotateY(-32deg) rotateZ(2deg) translateX(calc(var(--w) * -.38)) translateZ(-90px); z-index: 1; }

/* Intro */
.intro { font-size: 19px; text-align: center; margin: 4px 0 0; }

/* Feature grid */
.features { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 56px; row-gap: 64px;
  margin: 72px 0 0; padding: 0; list-style: none;
}
.grid li { text-align: center; }
.art { display: block; height: 96px; width: auto; margin: 0 auto 28px; overflow: visible; }
.art .g { stroke: var(--icon); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art .a { stroke: var(--pop); fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.art .af { fill: var(--pop); stroke: none; }
.art .bg { fill: var(--bg); }
.art .hl { fill: var(--pop); opacity: .28; stroke: none; }
.grid h3 { font-size: 21px; font-weight: 500; line-height: 1.25; margin: 0 0 10px; letter-spacing: -.01em; }
.grid p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0; }
.pro { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--pop); vertical-align: 3px; margin-left: 6px; }

/* Pricing */
section.pricing { margin-top: 40px; text-align: center; }
h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0 0; }

footer { text-align: center; font-size: 13px; color: var(--muted); padding-top: 24px; padding-bottom: 48px; }
footer nav { margin: 0 0 10px; }
footer nav a { margin: 0 8px; white-space: nowrap; }
footer p { margin: 0 0 8px; }

@media (max-width: 860px) {
  .grid { column-gap: 32px; }
  .art { height: 80px; margin-bottom: 22px; }
  .grid h3 { font-size: 19px; }
  .grid p { font-size: 15px; }
}
@media (max-width: 680px) {
  .features { padding: 0 24px; }
  .grid { grid-template-columns: 1fr; row-gap: 48px; margin-top: 56px; }
  .art { height: 76px; margin-bottom: 18px; }
}
@media (max-width: 420px) {
  header { padding-top: 72px; }
  h1 { font-size: 30px; }
  .icon { width: 96px; height: 96px; border-radius: 22px; }
  .stage { padding-bottom: 56px; }
}

/* Text pages: support and privacy policy */
.page-head { text-align: center; padding-top: 96px; }
.page-head .icon { width: 72px; height: 72px; border-radius: 16px; }
.page-head h1 { font-size: 32px; margin: 18px 0 6px; }
.page-head .tagline { font-size: 17px; margin: 0; }
.doc { max-width: 640px; margin: 0 auto; padding: 8px 20px 0; }
.doc .lede { font-size: 19px; text-align: center; margin: 36px 0 8px; }
.doc h2 { font-size: 21px; font-weight: 600; margin: 44px 0 10px; }
.doc p, .doc li { color: var(--ink); font-size: 17px; line-height: 1.65; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.doc a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }

/* Not found */
.notfound { text-align: center; padding: 112px 20px 24px; }
.notfound blockquote { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 30px; line-height: 1.3; margin: 28px 0 6px; color: var(--pop); }
.notfound cite { display: block; font-style: normal; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.notfound .badge { margin-top: 10px; }
.notfound .badge:hover { text-decoration: none; }

footer hr { margin: 0 0 24px; }
@media (max-width: 420px) {
  .page-head { padding-top: 72px; }
  .notfound { padding-top: 88px; }
}
