/* Pomodoro Focus website. One stylesheet for every page; no inline styles (the CSP blocks them). */

@property --c1 { syntax: "<color>"; inherits: true; initial-value: #2154ff; }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: #7046ff; }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: #35c6ff; }
@property --c0 { syntax: "<color>"; inherits: true; initial-value: #0a1a6e; }

:root {
  color-scheme: dark;
  --bg: #04050d;
  --ink: #fff;
  --ink-2: rgb(255 255 255 / 0.8);
  --ink-3: rgb(255 255 255 / 0.66);
  --glass: rgb(255 255 255 / 0.075);
  --glass-2: rgb(255 255 255 / 0.12);
  --tint: rgb(8 10 30 / 0.42);
  --stroke: rgb(255 255 255 / 0.14);
  --stroke-2: rgb(255 255 255 / 0.26);
  --focus: #4c8dff;
  --short: #2fd08a;
  --long: #9f7bff;
  --accent: var(--focus);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --r-xl: 34px;
  --r-l: 26px;
  --r-m: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* The fallback background's colors; site.js keeps them in step with the canvas. */
  --c0: #0a1a6e;
  --c1: #2154ff;
  --c2: #7046ff;
  --c3: #35c6ff;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p a, li a, td a, .answer a { color: #fff; text-decoration-color: rgb(255 255 255 / 0.45); }
p a:hover, li a:hover, td a:hover, .answer a:hover { text-decoration-color: #fff; }
strong { font-weight: 650; color: #fff; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
::selection { background: rgb(76 141 255 / 0.55); color: #fff; }
:focus-visible { outline: 3px solid #9cc2ff; outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: #fff; color: #000; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- The living background ---------- */

.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  height: 100vh; height: 100lvh;
  background:
    radial-gradient(60% 45% at 28% 30%, color-mix(in srgb, var(--c2) 78%, transparent), transparent 70%),
    radial-gradient(55% 45% at 75% 22%, color-mix(in srgb, var(--c3) 62%, transparent), transparent 70%),
    radial-gradient(70% 55% at 55% 55%, color-mix(in srgb, var(--c1) 80%, transparent), transparent 75%),
    linear-gradient(180deg, var(--c0), var(--bg) 92%);
  transition: --c0 1.2s ease, --c1 1.2s ease, --c2 1.2s ease, --c3 1.2s ease;
}
.backdrop canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
}
.backdrop canvas.on { opacity: 1; }
/* A soft vignette and the fall-off into the page color keep white text legible everywhere. */
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 35%, transparent 45%, rgb(4 5 13 / 0.38)),
    linear-gradient(180deg, rgb(4 5 13 / 0), rgb(4 5 13 / 0.12) 55%, rgb(4 5 13 / 0.42));
}

/* ---------- Glass ---------- */

.glass {
  position: relative;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.13), rgb(255 255 255 / 0.04) 45%, rgb(255 255 255 / 0.06)), var(--tint);
  border: 1px solid var(--stroke);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), inset 0 -1px 0 rgb(255 255 255 / 0.04), 0 30px 60px -30px rgb(0 0 0 / 0.55);
}
.glass.deep { --tint: rgb(6 8 24 / 0.62); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(6 8 22 / 0.42);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: none; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 15px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.09); }
.header-cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border-radius: 999px; background: #fff; color: #05060f; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.header-cta svg { width: 17px; height: 17px; }
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgb(255 255 255 / 0.5); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .site-nav + .header-cta { margin-left: 8px; }
}

/* ---------- Buttons, badges, pills ---------- */

.store { display: inline-block; border-radius: 12px; transition: transform 0.25s var(--ease), filter 0.25s; }
.store img { height: 54px; width: auto; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgb(0 0 0 / 0.45)); }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 22px;
  border-radius: 999px; color: #fff; font-weight: 600; text-decoration: none;
  background: rgb(255 255 255 / 0.1); border: 1px solid var(--stroke-2);
  transition: background 0.2s, transform 0.25s var(--ease);
}
.button:hover { background: rgb(255 255 255 / 0.18); transform: translateY(-1px); }
.button svg { width: 18px; height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: rgb(255 255 255 / 0.09); border: 1px solid var(--stroke); font-size: 14px; font-weight: 550; color: var(--ink-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.07); border: 1px solid var(--stroke); font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .facts { gap: 6px; } .facts li { padding: 6px 11px; font-size: 13px; gap: 5px; } .facts svg { width: 14px; height: 14px; } }
.facts svg { width: 16px; height: 16px; color: #8ee6a8; }

/* ---------- Devices ---------- */

.phone {
  --w: 280px;
  position: relative; width: var(--w); flex: none;
  aspect-ratio: 1320 / 2868;
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(150deg, #5b5f6b, #1a1b22 22%, #0d0e12 50%, #24262e 80%, #5a5d68);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.22),
    inset 0 0 0 calc(var(--w) * 0.012) #050507,
    0 2px 0 rgb(255 255 255 / 0.08),
    0 50px 100px -30px rgb(0 0 0 / 0.75),
    0 25px 50px -20px rgb(0 0 0 / 0.5);
  margin: 0;
}
.phone picture, .phone img { display: block; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.128); }
.phone img { object-fit: cover; background: #05060d; }
.phone::after { /* the Dynamic Island */
  content: ""; position: absolute; z-index: 2; left: 50%; top: calc(var(--w) * 0.0585);
  width: calc(var(--w) * 0.27); height: calc(var(--w) * 0.0755);
  translate: -50% 0; border-radius: 999px; background: #000;
}
.phone.no-island::after { display: none; }
.phone::before { /* glare */
  content: ""; position: absolute; inset: calc(var(--w) * 0.028); z-index: 1; pointer-events: none;
  border-radius: calc(var(--w) * 0.128);
  background: linear-gradient(115deg, rgb(255 255 255 / 0.1), transparent 28%, transparent 70%, rgb(255 255 255 / 0.04));
}
.ipad {
  --w: 560px;
  position: relative; width: var(--w); max-width: 100%;
  aspect-ratio: 2064 / 2752;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.07);
  background: linear-gradient(150deg, #5b5f6b, #1a1b22 22%, #0d0e12 50%, #24262e 80%, #5a5d68);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22), inset 0 0 0 calc(var(--w) * 0.01) #050507, 0 60px 120px -40px rgb(0 0 0 / 0.8);
  margin: 0;
}
.ipad picture, .ipad img { display: block; width: 100%; height: 100%; border-radius: calc(var(--w) * 0.038); object-fit: cover; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 40px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero h1 {
  margin: 22px 0 22px;
  font-size: clamp(46px, 11.5vw, 96px);
  line-height: 0.98; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff 30%, rgb(220 230 255 / 0.82));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
}
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.hero .lead { margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fine { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
.fine span + span::before { content: "·"; margin: 0 8px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-start; padding-bottom: 40px; }
.hero-visual .phone.main { --w: min(50vw, 300px); z-index: 2; }
.hero-visual .phone.back { --w: min(43vw, 264px); z-index: 1; margin-left: calc(var(--w) * -0.03); margin-top: calc(var(--w) * 0.34); }
.hero-glow { position: absolute; inset: 0 -10% -10%; background: radial-gradient(closest-side, rgb(76 141 255 / 0.3), rgb(76 141 255 / 0.08) 60%, transparent); z-index: 0; }
@media (min-width: 980px) {
  .hero { padding: 64px 0 104px; }
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero-visual .phone.main { --w: 290px; }
  .hero-visual .phone.back { --w: 262px; }
}
@media (max-width: 979px) {
  .hero { padding-top: 28px; }
  .hero-copy { margin-inline: auto; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero .cta-row, .hero .fine { justify-content: center; }
  .hero .fine { display: flex; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 560px) {
  .hero .button { display: none; }
  .hero h1 { margin: 18px 0 16px; }
  .hero .lead { font-size: 17.5px; }
  .header-cta { padding: 8px 14px; font-size: 14.5px; }
  .brand { font-size: 16px; }
}

/* Entrance on load: CSS only, so the hero never waits for JavaScript. */
@keyframes rise { from { opacity: 0.4; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(60px) scale(0.96); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
.hero-copy > :nth-child(5) { animation-delay: 0.24s; }
.hero-visual .phone.main { animation: float-in 1.3s var(--ease) 0.1s both; }
.hero-visual .phone.back { animation: float-in 1.3s var(--ease) 0.28s both; }

/* ---------- Sections ---------- */

.section { position: relative; padding: 76px 0; }
@media (min-width: 900px) { .section { padding: 120px 0; } }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.kicker { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.h2 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 18px; }
.h3 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.02em; margin-bottom: 10px; }
.on-bg { text-shadow: 0 2px 30px rgb(0 0 0 / 0.25); }

/* Strip of facts under the hero */
.facts-band { padding: 0 0 20px; }
.facts-band .facts { justify-content: center; }

/* ---------- Stage journey ---------- */

.journey .grid { display: grid; gap: 28px; }
.ring-stage { display: none; }
.steps { display: grid; gap: 18px; padding: 0; margin: 0; list-style: none; }
.step { padding: 26px; border-radius: var(--r-l); }
.step .tag { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 650; font-size: 15px; color: var(--stage); }
.step .tag svg { width: 22px; height: 22px; }
.step h3 { font-size: clamp(26px, 3.4vw, 34px); margin-bottom: 10px; }
.step h3 .mins { color: var(--stage); }
.step p { color: var(--ink-2); margin-bottom: 0; }
.step .range { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.step[data-stage="focus"] { --stage: var(--focus); }
.step[data-stage="short"] { --stage: var(--short); }
.step[data-stage="long"] { --stage: var(--long); }
.step { border-color: color-mix(in srgb, var(--stage) 35%, rgb(255 255 255 / 0.12)); }
.step .mini-ring { width: 44px; height: 44px; float: right; margin: -4px -4px 0 12px; }
.cycle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 34px 0 0; padding: 0; list-style: none; }
.cycle li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; background: color-mix(in srgb, var(--stage) 22%, rgb(255 255 255 / 0.04)); border: 1px solid color-mix(in srgb, var(--stage) 45%, transparent); }
.cycle li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--stage); }
.cycle li.f { --stage: var(--focus); }
.cycle li.s { --stage: var(--short); }
.cycle li.l { --stage: var(--long); }
.cycle .arrow { padding: 0; border: 0; background: none; color: var(--ink-3); font-weight: 400; }
@media (max-width: 699px) { .cycle .arrow { display: none; } .cycle li { font-size: 13.5px; padding: 6px 11px; } }
.cycle .arrow::before { display: none; }
.flow-note { margin-top: 26px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--r-m); }
.flow-note svg { flex: none; width: 26px; height: 26px; color: #ffd27a; margin-top: 2px; }
.flow-note p { margin: 0; color: var(--ink-2); }

@media (min-width: 980px) {
  .journey .grid { grid-template-columns: 0.95fr 1.05fr; gap: 64px; align-items: start; }
  .ring-stage { display: grid; place-items: center; position: sticky; top: 15vh; height: 70vh; }
  .step { padding: 8px 0 8px 32px; min-height: 46vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.4; transition: opacity 0.6s var(--ease);
    background: none; border: 0; border-radius: 0; box-shadow: none; }
  .step::before { content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%; width: 3px; height: 0; border-radius: 3px; background: var(--stage); transition: height 0.7s var(--ease); }
  .step.active::before { height: 70%; }
  .step h3 { font-size: clamp(32px, 3.4vw, 44px); }
  .step p { font-size: 18px; }
  .step.active, html:not(.js) .step { opacity: 1; }
  .step .mini-ring { display: none; }
  .steps { gap: 24px; padding: 6vh 0; }
}

/* The timer ring, drawn like the app's */
.timer {
  --stage: var(--focus);
  position: relative; width: min(440px, 36vw); aspect-ratio: 1; display: grid; place-items: center; text-align: center;
}
.timer svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.timer .track { fill: none; stroke: rgb(255 255 255 / 0.2); stroke-width: 2.4; }
.timer .progress { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; transition: stroke-dasharray 0.9s var(--ease); }
.timer .label { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 18px; margin-bottom: 4px; transition: color 0.6s; }
.timer .label svg { width: 24px; height: 24px; }
.timer .time { font: 700 clamp(64px, 7vw, 104px)/1 var(--rounded); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.timer .cat { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.timer .disc { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02) 60%); border: 1px solid rgb(255 255 255 / 0.08); }
.timer .face { position: relative; }
.timer .face [data-stage-label] { display: none; }
.timer[data-stage="focus"] [data-stage-label="focus"],
.timer[data-stage="short"] [data-stage-label="short"],
.timer[data-stage="long"] [data-stage-label="long"] { display: inline-flex; }

/* ---------- Feature rows ---------- */

.feature .wrap { display: grid; gap: 44px; align-items: center; }
.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.feature-visual .phone { --w: min(72vw, 300px); }
.feature-copy { max-width: 560px; }
.feature-copy .lead { margin-bottom: 26px; }
.checks { display: grid; gap: 12px; padding: 0; margin: 0 0 8px; list-style: none; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 28%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
}
.feature[data-theme="grape"] { --accent: #b28cff; }
.feature[data-theme="sunset"] { --accent: #ff6a55; }
.feature[data-theme="rose"] { --accent: #ff5fb0; }
.feature[data-theme="aqua"] { --accent: #22c7d6; }
.more-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; text-decoration: none; color: #fff; }
.more-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.more-link:hover svg { transform: translateX(3px); }
@media (min-width: 900px) {
  .feature .wrap { grid-template-columns: 1fr 1fr; gap: 80px; }
  .feature.flip .feature-visual { order: 2; }
  .feature-visual .phone { --w: 310px; }
}

/* Live Activity extras: the Dynamic Island in its compact and expanded forms */
.islands { position: absolute; z-index: 3; display: grid; gap: 14px; justify-items: center; }
.la-visual { padding-top: 10px; }
.la-visual .phone { margin-right: 0; }
.island-compact {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 64px;
  padding: 10px 16px 10px 13px; border-radius: 999px; background: #000;
  color: var(--focus); font: 650 17px/1 var(--rounded); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 20px 40px -14px rgb(0 0 0 / 0.8);
}
.island-compact svg { width: 21px; height: 21px; }
.island-expanded {
  width: 330px; max-width: 86vw; padding: 18px 18px 16px; border-radius: 40px; background: #000; color: #fff;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08), 0 30px 60px -20px rgb(0 0 0 / 0.85);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
}
.island-expanded .st { display: inline-flex; align-items: center; gap: 6px; color: var(--focus); font-weight: 650; font-size: 14px; }
.island-expanded .st svg { width: 17px; height: 17px; }
.island-expanded .t { font: 700 38px/1.05 var(--rounded); font-variant-numeric: tabular-nums; }
.island-expanded .btn { grid-row: 1 / span 2; grid-column: 2; width: 52px; height: 52px; border-radius: 50%; background: #0a84ff; display: grid; place-items: center; }
.island-expanded .btn svg { width: 22px; height: 22px; color: #fff; }
.island-expanded .bar { grid-column: 1 / -1; height: 5px; margin-top: 8px; border-radius: 9px; background: rgb(255 255 255 / 0.2); overflow: hidden; }
.island-expanded .bar i { display: block; height: 100%; width: var(--p, 25%); background: #0a84ff; border-radius: inherit; transition: width 1s linear; }
.la-visual { flex-direction: column; gap: 22px; }
.la-visual .islands { position: static; }
@media (max-width: 1099px) { .la-visual .island-expanded { width: min(330px, 86vw); } }
@media (min-width: 1100px) {
  .la-visual { flex-direction: row; }
  .la-visual .islands { position: absolute; right: -40px; top: 50%; translate: 0 -50%; justify-items: end; }
  .la-visual .phone { margin-right: 160px; }
}

/* Sounds */
.sounds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0; margin: 0 0 8px; list-style: none; max-width: 460px; }
.sounds li { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 1; border: 1px solid var(--stroke); }
.sounds img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.sounds li:hover img { transform: scale(1.06); }
:lang(ja) .sounds span, :lang(zh-Hans) .sounds span, :lang(ko) .sounds span { padding-inline: 5px; font-size: clamp(11px, 2.9vw, 14px); letter-spacing: -0.02em; word-break: keep-all; }
.sounds span { text-wrap: balance; }
.sounds span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 8px; font-size: clamp(12px, 3.3vw, 14px); line-height: 1.25; font-weight: 650; background: linear-gradient(transparent, rgb(0 0 0 / 0.72)); }

/* Appearance picker */
.picker { margin-top: 26px; padding: 18px; border-radius: var(--r-l); max-width: 520px; }
.picker h3 { font-size: 15px; font-weight: 650; letter-spacing: 0; margin: 0 0 10px; color: var(--ink-2); font-family: var(--sans); }
.picker h3 + .styles { margin-bottom: 18px; }
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.styles button, .colors button { font: inherit; color: inherit; cursor: pointer; border: 0; }
.styles button {
  padding: 10px 6px; border-radius: 14px; background: rgb(255 255 255 / 0.07); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.styles button:hover { background: rgb(255 255 255 / 0.13); }
.styles button[aria-pressed="true"] { background: rgb(255 255 255 / 0.18); border-color: rgb(255 255 255 / 0.7); }
.colors { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.colors button {
  width: 38px; height: 38px; border-radius: 50%; padding: 0; position: relative;
  background: radial-gradient(circle at 35% 30%, var(--b), var(--a) 70%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
  transition: transform 0.2s var(--ease);
}
.colors button:hover { transform: scale(1.08); }
.colors button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25), 0 0 0 3px var(--bg), 0 0 0 5px #fff; }
.colors [data-color="auto"] { background: conic-gradient(from 200deg, #4c8dff, #2fd08a, #9f7bff, #4c8dff); }
.colors [data-color="ocean"] { --a: #2154ff; --b: #35c6ff; }
.colors [data-color="sunset"] { --a: #d61f3a; --b: #ff9f5a; }
.colors [data-color="rose"] { --a: #d11f7e; --b: #ff9bd0; }
.colors [data-color="grape"] { --a: #4c2be6; --b: #ff58ce; }
.colors [data-color="forest"] { --a: #0ea868; --b: #b4ee58; }
.colors [data-color="aqua"] { --a: #0a9ab0; --b: #9bf5e6; }
.picker .current { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- Bento of smaller features ---------- */

.bento { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
.bento li { padding: 26px; border-radius: var(--r-l); }
.bento .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--i, #4c8dff) 26%, rgb(255 255 255 / 0.06)); border: 1px solid color-mix(in srgb, var(--i, #4c8dff) 50%, transparent); }
.bento .icon svg { width: 24px; height: 24px; color: #fff; }
.bento h3 { font-size: 21px; letter-spacing: -0.015em; margin-bottom: 8px; }
.bento p { margin: 0; color: var(--ink-2); font-size: 16px; }
.bento li:nth-child(1) { --i: #ffb340; }
.bento li:nth-child(2) { --i: #4c8dff; }
.bento li:nth-child(3) { --i: #ff5fb0; }
.bento li:nth-child(4) { --i: #ff6a55; }
.bento li:nth-child(5) { --i: #22c7d6; }
.bento li:nth-child(6) { --i: #9f7bff; }
.bento li:nth-child(7) { --i: #2fd08a; }
.bento li:nth-child(8) { --i: #8e9bff; }
@media (min-width: 640px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento li.wide, .bento li:nth-child(7), .bento li:nth-child(8) { grid-column: span 2; }
}

/* ---------- iPad ---------- */

.ipad-row .wrap { display: grid; gap: 44px; align-items: center; justify-items: center; }
.ipad-row .feature-copy { text-align: center; margin-inline: auto; }
.ipad-row .lead { margin-inline: auto; }
.ipad-row .ipad { --w: min(88vw, 600px); }

/* ---------- Guides ---------- */

.cards { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.cards a { display: flex; flex-direction: column; height: 100%; padding: 26px; border-radius: var(--r-l); text-decoration: none; transition: transform 0.35s var(--ease), border-color 0.3s; }
.cards a:hover { transform: translateY(-4px); border-color: var(--stroke-2); }
.cards .emoji { font-size: 30px; line-height: 1; margin-bottom: 16px; }
.cards h3 { font-size: 21px; letter-spacing: -0.015em; margin-bottom: 8px; }
.cards p { color: var(--ink-2); margin: 0 0 18px; font-size: 16px; }
.cards .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.cards .go svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.cards a:hover .go svg { transform: translateX(3px); }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.five li:nth-child(n+4) { grid-column: span 1; } }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-m); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 22px; font-weight: 600; font-size: 18px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgb(255 255 255 / 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: rotate 0.3s var(--ease), background-color 0.3s;
}
.faq details[open] summary::after { rotate: 45deg; background-color: rgb(255 255 255 / 0.2); }
.faq .answer { padding: 0 22px 20px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Final call to action ---------- */

.final { text-align: center; padding: 56px 24px; border-radius: var(--r-xl); overflow: hidden; }
.final img.app-icon { width: 104px; height: 104px; margin: 0 auto 26px; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.45)); }
.final .h2 { margin-bottom: 14px; }
.final .lead { margin: 0 auto 30px; }
.final .cta-row { justify-content: center; }
.final .fine { justify-content: center; display: flex; flex-wrap: wrap; }
@media (min-width: 900px) { .final { padding: 88px 48px; } }

/* ---------- Article pages (guides, support, privacy) ---------- */

.page-hero { padding: 56px 0 40px; }
@media (min-width: 900px) { .page-hero { padding: 88px 0 56px; } }
.page-hero h1 { font-size: clamp(38px, 6.4vw, 70px); letter-spacing: -0.038em; line-height: 1.02; margin: 14px 0 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: rgb(255 255 255 / 0.35); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.byline { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); }
.article-shell { padding-bottom: 96px; }
.prose { padding: 26px 18px; border-radius: var(--r-xl); --tint: rgb(6 8 24 / 0.66); }
@media (max-width: 719px) {
  .article-shell .narrow { width: min(100% - 20px, 760px); }
  .prose { border-radius: var(--r-l); }
  .answer-box, .toc, .callout, .contact-card { padding: 16px 16px; }
  .howto li { padding: 16px 16px 16px 56px; }
  .howto li::before { left: 12px; }
  table { min-width: 440px; font-size: 14.5px; }
  th, td { padding: 11px 12px; }
}
@media (min-width: 720px) { .prose { padding: 52px 56px; } }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.025em; margin: 2.1em 0 0.6em; scroll-margin-top: 90px; }
.prose h3 { font-size: 21px; letter-spacing: -0.012em; margin: 1.7em 0 0.5em; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: rgb(255 255 255 / 0.5); }
.prose ol li::marker { font-weight: 650; }
.prose hr { border: 0; height: 1px; background: var(--stroke); margin: 2.4em 0; }
.answer-box {
  margin: 0 0 2em; padding: 22px 24px; border-radius: var(--r-m);
  background: linear-gradient(135deg, rgb(76 141 255 / 0.2), rgb(159 123 255 / 0.14)); border: 1px solid rgb(140 170 255 / 0.35);
}
.answer-box p:last-child, .answer-box ul:last-child { margin-bottom: 0; }
.answer-box .label { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #b9cdff; }
.answer-box p { color: #fff; }
.toc { margin: 0 0 2em; padding: 18px 22px; border-radius: var(--r-m); background: rgb(255 255 255 / 0.05); border: 1px solid var(--stroke); }
.toc strong { display: block; margin-bottom: 6px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0.25em 0; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: #fff; text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-radius: var(--r-m); border: 1px solid var(--stroke); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
thead th { background: rgb(255 255 255 / 0.07); font-weight: 650; color: #fff; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: #fff; }
td { color: var(--ink-2); }
td.yes { color: #8ee6a8; font-weight: 600; }
td.no { color: rgb(255 255 255 / 0.55); }
.howto { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; margin: 1.2em 0 1.8em; }
.howto li { counter-increment: step; position: relative; padding: 18px 20px 18px 66px; border-radius: var(--r-m); background: rgb(255 255 255 / 0.05); border: 1px solid var(--stroke); margin: 0; }
.howto li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 16px/1 var(--rounded); background: var(--focus); color: #fff; }
.howto li strong { display: block; margin-bottom: 4px; font-size: 17.5px; }
.howto li p { margin: 0; }
.callout { display: flex; gap: 16px; align-items: flex-start; margin: 1.8em 0; padding: 20px 22px; border-radius: var(--r-m); background: rgb(47 208 138 / 0.12); border: 1px solid rgb(47 208 138 / 0.35); }
.callout svg { flex: none; width: 26px; height: 26px; color: #8ee6a8; margin-top: 2px; }
.callout p { margin: 0; color: #fff; }
.callout.warn { background: rgb(255 179 64 / 0.1); border-color: rgb(255 179 64 / 0.35); }
.callout.warn svg { color: #ffd27a; }
.app-card { display: grid; gap: 20px; align-items: center; margin: 2.4em 0 0; padding: 26px; border-radius: var(--r-l); background: linear-gradient(140deg, rgb(33 84 255 / 0.32), rgb(112 70 255 / 0.22)); border: 1px solid rgb(140 170 255 / 0.35); }
.app-card img.app-icon { width: 76px; height: 76px; }
.app-card h2, .app-card .h3 { margin: 0 0 6px; font-size: 24px; }
.app-card p { margin: 0 0 14px; color: var(--ink-2); }
.app-card .store img { height: 48px; }
@media (min-width: 640px) { .app-card { grid-template-columns: auto 1fr; } }
.figure { margin: 2.2em 0; display: flex; flex-direction: column; align-items: center; }
.figure .phone { --w: min(66vw, 260px); }
.figure figcaption, .caption { margin-top: 14px; font-size: 14px; color: var(--ink-3); text-align: center; }
.related { margin-top: 2.6em; }
.related h2 { margin-top: 0; font-size: 22px; }
.related ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.related li { margin: 0; }
.related a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: rgb(255 255 255 / 0.05); border: 1px solid var(--stroke); text-decoration: none; color: #fff; font-weight: 600; transition: background 0.2s; }
.related a:hover { background: rgb(255 255 255 / 0.1); }
.related a span { font-size: 22px; }
.sources { font-size: 14.5px; }
.sources li { color: var(--ink-3); }
.prose .faq { margin-top: 1em; }
.prose .faq details { background: rgb(255 255 255 / 0.05); border: 1px solid var(--stroke); }
.prose .faq summary { font-size: 17px; }
.contact-card { margin: 1.4em 0 2em; padding: 24px; border-radius: var(--r-m); background: linear-gradient(135deg, rgb(76 141 255 / 0.2), rgb(159 123 255 / 0.14)); border: 1px solid rgb(140 170 255 / 0.35); }
.contact-card p { color: #fff; }
.contact-card .button { margin-top: 4px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .timer-404 { font: 700 clamp(88px, 18vw, 180px)/1 var(--rounded); letter-spacing: -0.03em; margin-bottom: 10px; }
.notfound .lead { margin: 0 auto 28px; }

/* ---------- Footer ---------- */

.site-footer { position: relative; padding: 64px 0 40px; margin-top: 40px; background: linear-gradient(180deg, rgb(4 5 13 / 0.2), rgb(4 5 13 / 0.92) 30%); border-top: 1px solid rgb(255 255 255 / 0.07); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.footer-about { grid-column: 1 / -1; max-width: 380px; }
.footer-about p { margin-top: 14px; color: var(--ink-3); font-size: 15px; }
.site-footer h2 { font: 650 13px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.site-footer ul a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.langs { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 0.08); }
.langs .row { display: flex; gap: 12px; align-items: flex-start; }
.langs svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); }
.langs ul { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.langs a { font-size: 14px; }
.langs a[aria-current] { color: #fff; font-weight: 650; }
.legal { margin-top: 26px; font-size: 13px; color: rgb(255 255 255 / 0.5); }
.legal p { margin: 0 0 6px; }

/* Bar offering the visitor's language on English pages (site.js) */
.lang-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 9px 46px 9px 16px; position: relative; font-size: 14.5px; background: rgb(76 141 255 / 0.22); border-bottom: 1px solid rgb(140 170 255 / 0.3); }
.lang-hint a { font-weight: 650; }
.lang-hint button { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.lang-hint button:hover { background: rgb(255 255 255 / 0.12); }

/* ---------- Scroll reveals (site.js adds .js to <html>) ---------- */

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-phone { opacity: 0; transform: translateY(70px) scale(0.94) rotate(var(--tilt, 0deg)); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
.js .reveal-phone.in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.stagger > :nth-child(2) { --d: 0.07s; }
.stagger > :nth-child(3) { --d: 0.14s; }
.stagger > :nth-child(4) { --d: 0.21s; }
.stagger > :nth-child(5) { --d: 0.28s; }
.stagger > :nth-child(6) { --d: 0.35s; }
.stagger > :nth-child(7) { --d: 0.42s; }
.stagger > :nth-child(8) { --d: 0.49s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-phone { opacity: 1; transform: none; }
}

/* ---------- Languages ---------- */

:lang(ja) { --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; --display: var(--sans); }
:lang(ko) { --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif; --display: var(--sans); }
:lang(zh-Hans) { --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif; --display: var(--sans); }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(zh-Hans) h1, :lang(zh-Hans) h2, :lang(zh-Hans) h3 { letter-spacing: 0; line-height: 1.22; }
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh-Hans) .hero h1 { font-size: clamp(40px, 9.5vw, 80px); line-height: 1.15; }
:lang(ja) .h2, :lang(ko) .h2, :lang(zh-Hans) .h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.2; }
:lang(ja) .page-hero h1, :lang(ko) .page-hero h1, :lang(zh-Hans) .page-hero h1 { font-size: clamp(32px, 5.4vw, 58px); line-height: 1.22; }
:lang(ja) body, :lang(zh-Hans) body { line-height: 1.8; line-break: strict; }
:lang(ja) { word-break: auto-phrase; }
:lang(ko) body { line-height: 1.75; word-break: keep-all; }
:lang(ja) .kicker, :lang(ko) .kicker, :lang(zh-Hans) .kicker, :lang(ja) .site-footer h2, :lang(ko) .site-footer h2, :lang(zh-Hans) .site-footer h2 { letter-spacing: 0.04em; }
:lang(ru) .hero h1, :lang(de) .hero h1, :lang(nl) .hero h1, :lang(fr) .hero h1, :lang(es) .hero h1, :lang(it) .hero h1, :lang(pt-BR) .hero h1 { font-size: clamp(42px, 9.6vw, 86px); }
@media (max-width: 600px) {
  :lang(de) h1, :lang(de) h2, :lang(nl) h1, :lang(nl) h2, :lang(ru) h1, :lang(ru) h2 { -webkit-hyphens: auto; hyphens: auto; }
}
