/* Pomelo — site styles. Hand-written, no framework, no external requests.
   Tokens are BRAND.md section 3. Light (paper) by default, dark tokens under prefers-color-scheme.
   Numbers are the hero: rounded, heavy, tabular figures. No inline styles anywhere (CSP style-src 'self'). */

:root {
  --paper: #FFFBF5;
  --card: #FFFFFF;
  --line: #EFE9E0;
  --text: #1C1A22;
  --muted: #8A8794;
  --pomelo: #FF6B8A;
  --pomelo-soft: rgba(255, 107, 138, 0.14);
  --lime: #A3D65C;
  --tangerine: #FF9F43;
  --plum: #8E5AC8;
  --lychee: #E8515C;
  --blueberry: #4C7BE8;
  --other: #D9D4CC;
  --good: #3DBE7A;
  --shadow: 0 1px 2px rgba(28, 26, 34, 0.04), 0 8px 28px rgba(28, 26, 34, 0.06);
  --lock-a: #3B2E5A;
  --lock-b: #FF8FA6;

  --body: -apple-system, "SF Pro Rounded", ui-rounded, system-ui, BlinkMacSystemFont,
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, BlinkMacSystemFont,
           "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: max(16px, env(safe-area-inset-left));
  --maxw: 1080px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14121A;
    --card: #1E1B26;
    --line: #2A2633;
    --text: #F7F4EE;
    --muted: #9C98A6;
    --other: #3A3644;
    --pomelo-soft: rgba(255, 107, 138, 0.18);
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--pomelo);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 16px; top: 16px; z-index: 20;
  background: var(--pomelo); color: #fff;
  padding: 10px 14px; border-radius: 12px; text-decoration: none;
}

.num { font-variant-numeric: tabular-nums; }

h1, h2, h3, .mark, .foot__mark { font-family: var(--round); }

/* ------------------------------------------------------------------- nav */

.nav {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.mark img { width: 26px; height: 26px; flex: none; }
.nav nav { display: flex; gap: 16px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 420px) {
  .nav nav a[href="#rules"] { display: none; }
}

/* -------------------------------------------------------------- sections */

section { padding-block: clamp(52px, 9vw, 96px); }
section + section { border-top: 1px solid var(--line); }

.section-title {
  font-size: clamp(1.75rem, 5.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 58ch;
  margin: 0 0 34px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pomelo);
  background: var(--pomelo-soft);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ hero */

.hero { padding-block: clamp(40px, 8vw, 88px) clamp(52px, 9vw, 96px); }

.hero__grid { display: grid; gap: clamp(40px, 6vw, 60px); }
@media (min-width: 920px) {
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.hero h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 13ch;
}
.hero__sub {
  font-size: clamp(1.08rem, 3.2vw, 1.3rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 36ch;
  margin: 0 0 30px;
}
.hero__note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------- app store badge */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px 12px 18px;
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid #000;
  transition: transform .15s ease;
}
.badge:hover { transform: translateY(-1px); }
.badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.badge__lines { display: block; line-height: 1.12; }
.badge__small { display: block; font-size: 11px; letter-spacing: .04em; color: #d6d3cd; }
.badge__big { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
@media (prefers-color-scheme: dark) { .badge { border-color: #55525e; } }

/* ------------------------------------------------------- hero demo objects */

.hero__demo {
  display: grid;
  justify-items: center;
  gap: 22px;
}
@media (min-width: 560px) {
  .hero__demo { grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 28px; }
}

.today {
  width: clamp(236px, 64vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pomelo);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 18px 50px rgba(255, 107, 138, 0.32), inset 0 0 0 10px rgba(255, 255, 255, 0.16);
  font-family: var(--round);
}
.today__flag { font-size: 2.3rem; line-height: 1; margin-bottom: 6px; }
.today__country { font-weight: 700; font-size: 1.05rem; }
.today__big {
  font-size: clamp(3.6rem, 16vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 2px 0 6px;
}
.today__line { font-size: 0.98rem; font-weight: 600; }
.today__line--muted { opacity: 0.82; font-weight: 500; }

.yearring {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 20px 20px;
  width: min(300px, 100%);
  display: grid;
  gap: 12px;
  justify-items: center;
}
@media (min-width: 560px) { .yearring { width: 220px; } }
.yearring svg { width: 150px; height: 150px; }

.ring-track { stroke: var(--line); }
.ring-other { stroke: var(--other); }
.ring-num {
  font-family: var(--round);
  font-size: 44px;
  font-weight: 900;
  fill: var(--text);
  font-variant-numeric: tabular-nums;
}
.ring-num--sm { font-size: 30px; }
.ring-cap { font-size: 14px; fill: var(--muted); font-family: var(--body); }
.ring-cap--sm { font-size: 12px; }

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; font-family: var(--round); font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--pomelo { background: var(--pomelo); }
.dot--blueberry { background: var(--blueberry); }
.dot--plum { background: var(--plum); }
.dot--lime { background: var(--lime); }
.dot--tangerine { background: var(--tangerine); }
.dot--other { background: var(--other); }

/* --------------------------------------------------------------- points */

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 800px) { .points { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

.point {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px 22px 26px;
}
.point::before {
  content: "";
  display: block;
  width: 34px; height: 34px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: var(--pomelo);
}
.point--lime::before { background: var(--lime); }
.point--tangerine::before { background: var(--tangerine); }
.point h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 8px;
}
.point p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- rules */

.rules { display: grid; gap: 14px; }
@media (min-width: 800px) { .rules { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

.rule {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: start;
}
.rule__ring { width: 92px; height: 92px; }
@media (max-width: 479px) {
  .rule { grid-template-columns: 1fr; gap: 12px; }
  .rule__ring, .rule__days { width: 84px; height: 84px; }
  .rule__days { place-items: center start; }
}
.rule h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.015em; margin: 4px 0 6px; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; }
.rule p b { color: var(--text); font-weight: 600; }
.rule__days { width: 92px; height: 92px; display: grid; place-items: center; }
.daychip { display: flex; }
.daychip span {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.6rem;
  background: var(--pomelo-soft);
  border: 3px solid var(--card);
}
.daychip span + span { margin-left: -16px; background: rgba(163, 214, 92, 0.22); }
.rules-note { color: var(--muted); font-size: 14.5px; margin: 22px 0 0; }

/* -------------------------------------------------------------- widgets */

.widgets {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}
.widget { margin: 0; }
.widget--wide { grid-column: 1 / -1; order: 3; }
@media (min-width: 860px) {
  .widgets { grid-template-columns: 1fr 2fr 1fr; align-items: end; }
  .widget--wide { grid-column: auto; order: 0; }
}
.widget svg { display: block; width: 100%; height: auto; }
.widget figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.w-card { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.w-lock { fill: var(--lock-a); }
.w-title { font-family: var(--round); font-size: 26px; font-weight: 800; fill: var(--text); }
.w-sub { font-family: var(--body); font-size: 17px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.w-time { font-family: var(--round); font-size: 58px; font-weight: 700; fill: #fff; font-variant-numeric: tabular-nums; }
.w-lockn { font-family: var(--round); font-size: 22px; font-weight: 800; fill: #fff; }

/* ----------------------------------------------------------- screenshots */

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}
@media (min-width: 760px) {
  .shots {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-columns: auto;
    overflow: visible;
    gap: 18px;
    max-width: 820px;
  }
}
.shot { margin: 0; scroll-snap-align: center; }
.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 1290 / 2796;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
}
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* -------------------------------------------------------------- privacy */

.privacy {
  display: grid;
  gap: 28px;
}
@media (min-width: 820px) { .privacy { grid-template-columns: 0.9fr 1.1fr; gap: 48px; } }
.privacy__lead { color: var(--muted); font-size: 16.5px; margin: 0; max-width: 44ch; }

/* ------------------------------------------------------------- features */

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features li { position: relative; padding-left: 28px; }
.features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pomelo);
}
.features b { display: block; font-weight: 600; }
.features span { color: var(--muted); font-size: 15px; }

/* -------------------------------------------------------------- pricing */

.pro {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
  display: grid;
  gap: 26px;
}
@media (min-width: 800px) { .pro { grid-template-columns: 0.85fr 1.15fr; gap: 44px; } }
.pro__price {
  font-family: var(--round);
  font-size: clamp(2.8rem, 9vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 10px;
  color: var(--pomelo);
}
.pro__once { color: var(--muted); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.pro__line { margin: 0 0 6px; color: var(--muted); font-size: 15.5px; }
.pro__line strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ faq */

.qas { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 820px) { .qas { grid-template-columns: repeat(2, 1fr); gap: 32px 48px; } }
.qa h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; margin: 0 0 8px; }
.qa p { margin: 0; color: var(--muted); font-size: 15.5px; }
.qa p + p { margin-top: 9px; }
.qa b { color: var(--text); font-weight: 600; }
.qa a { color: var(--text); }

/* --------------------------------------------------------------- footer */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 36px 52px;
  color: var(--muted);
  font-size: 14px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: baseline;
  justify-content: space-between;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot__mark { font-weight: 800; font-size: 1.1rem; color: var(--text); letter-spacing: -0.02em; }

/* ------------------------------------------------------------ doc pages */

.doc { padding-block: clamp(40px, 7vw, 68px) clamp(48px, 9vw, 84px); }
.doc__back { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 24px; }
.doc__back:hover { color: var(--text); }
.doc h1 {
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.doc__meta { color: var(--muted); font-size: 14.5px; margin: 0 0 36px; }
.doc__body { max-width: 66ch; }
.doc__body h2 { font-family: var(--round); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 36px 0 10px; }
.doc__body h3 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 6px; }
.doc__body p, .doc__body li { color: var(--muted); font-size: 16px; }
.doc__body strong { color: var(--text); font-weight: 600; }
.doc__body ul, .doc__body ol { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.doc__body a { color: var(--text); }

/* ------------------------------------------------------------------- 404 */

.stop { min-height: 78vh; display: flex; align-items: center; padding-block: clamp(48px, 9vw, 88px); }
.stop__inner { width: min(560px, 100%); }
.stop__code {
  font-family: var(--round);
  font-size: clamp(3.4rem, 16vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 12px;
}
.stop__code span { color: var(--pomelo); }
.stop__note { color: var(--muted); font-size: 1.05rem; margin: 0 0 26px; }

.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { border-color: var(--text); }
.btn--primary { background: var(--pomelo); border-color: var(--pomelo); color: #fff; font-weight: 600; }
.btn--primary:hover { background: #ff5a7d; border-color: #ff5a7d; }
