/* Kroky: the app's palette (Kroky/Resources/Assets.xcassets) on iOS's grouped background, light and dark. */
:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #E9EEEB;
  --line: rgba(60, 60, 67, .16);
  --text: #111;
  --text-2: #6C6C70;
  --accent: #1D6B4B;
  --on-accent: #FFFFFF;
  --tint: #D7E6DE;
  --tint-text: #1D6B4B;
  --cream: #FFF6E3;
  --sun: #F4C04E;
  --hero: radial-gradient(120% 80% at 50% 0%, #2A8A60 0%, #1D6B4B 45%, #123F2D 100%);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --line: rgba(84, 84, 88, .55);
    --text: #F2F2F7;
    --text-2: #AEAEB2;
    --accent: #7EE0A6;
    --on-accent: #0A1A12;
    --tint: #1E3A2C;
    --tint-text: #7EE0A6;
    --hero: radial-gradient(120% 80% at 50% 0%, #237051 0%, #1B4A35 45%, #0B2117 100%);
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body:lang(ja), body:lang(zh-Hans), body:lang(zh-Hant), body:lang(ko) { line-height: 1.75; }
:lang(ja) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3), :lang(zh-Hant) :is(h1, h2, h3), :lang(ko) :is(h1, h2, h3) { line-height: 1.3; }
:lang(ja) :is(h1, h2, h3, .shot-cap) { word-break: auto-phrase; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h2 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; inset-inline-start: 16px; top: 8px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: 10px; }
.icon { width: 24px; height: 24px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .cta :focus-visible { outline-color: #fff; }

/* Header: a translucent bar like iOS's navigation bar. */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; margin-inline-start: auto; font-size: 15px; }
.nav a { color: var(--text); }
.get {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.get:hover { text-decoration: none; filter: brightness(1.08); }
.lang { position: relative; font-size: 15px; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary .icon { width: 18px; height: 18px; color: var(--accent); }
.lang ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  background: var(--surface); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.18);
  display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 2px;
  max-height: 70vh; overflow: auto; width: max-content; max-width: calc(100vw - 32px);
}
.lang li a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); white-space: nowrap; }
.lang li a:hover, .lang li a[aria-current] { background: var(--tint); color: var(--tint-text); text-decoration: none; }

/* Hero: the store screenshots' green, with the app's Home screen in an iPhone frame. */
.hero { background: var(--hero); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 0; }
.hero-text { padding-bottom: 64px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--cream); opacity: .9; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 20px; }
.hero h1 em { font-style: normal; color: #9BEBBE; }
.lead { font-size: 19px; color: var(--cream); max-width: 34em; }
.actions { margin: 28px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Apple's clear space: a quarter of the badge's height on every side. */
.badge { display: inline-block; margin: 13px 0; line-height: 0; }
.badge img { height: 54px; width: auto; }
.facts { font-size: 15px; color: var(--cream); opacity: .85; }
.chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
/* For visitors on a computer: the camera of the iPhone in their pocket is the shortest way to the App Store. */
.qr { display: none; align-items: center; gap: 14px; margin: 24px 0 0; font-size: 15px; color: var(--cream); max-width: 22em; }
.qr img { background: #fff; padding: 6px; border-radius: 12px; flex: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .qr { display: flex; } }
.hero-phone { align-self: end; display: flex; justify-content: center; }
.hero-phone .phone { width: min(330px, 80vw); margin-bottom: -90px; }

/* An iPhone drawn around a raw screenshot: the screen's 62/440 corner radius and the Dynamic Island. */
.phone {
  position: relative; padding: 2.4%; background: #0B0F0D; border-radius: 16% / 7.4%;
  box-shadow: 0 30px 80px rgba(0,0,0,.35), 0 0 0 2px #2E3A34; container-type: inline-size;
}
.phone img { display: block; width: 100%; height: auto; border-radius: 14.1% / 6.5%; }
.phone::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: calc(2.4cqw + 2.6cqw);
  width: 27cqw; height: 8cqw; border-radius: 99px; background: #000;
}
@supports not (container-type: inline-size) { .phone::after { display: none; } }

/* Screenshot strip */
.shots { padding: 56px 0 32px; }
.strip {
  list-style: none; margin: 0; padding: 8px 2px 24px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 250px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
/* The strip runs to the window's edges, so a phone cut off there reads as "scroll for more". */
.shots .strip {
  margin-inline: calc(50% - 50vw); padding-inline: max(16px, calc(50vw - 524px));
  scroll-padding-inline: max(16px, calc(50vw - 524px));
}
.strip li { scroll-snap-align: start; }
.strip figure { margin: 0; }
.strip .phone { box-shadow: var(--shadow), 0 0 0 2px #2E3A34; }
.strip figcaption { margin-top: 14px; font-size: 15px; color: var(--text-2); }
.strip figcaption strong { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }

/* Sections */
.section { padding: 48px 16px; }
.group { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
.how li { display: flex; gap: 16px; padding: 18px 20px; }
.how li { position: relative; }
.how li + li::before { content: ""; position: absolute; top: 0; inset-inline: 68px 0; border-top: .5px solid var(--line); }
.how p { margin: 0; color: var(--text-2); }
.num {
  flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cards.three { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--surface); border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); }
.card .icon { color: var(--accent); background: var(--tint); box-sizing: content-box; padding: 8px; border-radius: 12px; margin-bottom: 12px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card a { color: inherit; display: block; height: 100%; }
.card a:hover { text-decoration: none; }
.card:has(a) { transition: transform .15s, box-shadow .15s; }
.card:has(a:hover) { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(0,0,0,.1); }
.pro-tag {
  display: inline-block; vertical-align: 2px; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--tint); color: var(--tint-text); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.card .go { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 15px; }
.more, .note { color: var(--text-2); font-size: 15px; margin-top: 16px; }

.table-wrap { overflow-x: auto; }
.plans { width: 100%; border-collapse: collapse; font-size: 15px; }
.plans th, .plans td { text-align: start; padding: 12px 18px; vertical-align: top; }
.plans tbody tr + tr th, .plans tbody tr + tr td { border-top: .5px solid var(--line); }
.plans thead th { color: var(--accent); font-size: 17px; }
.plans tbody th { font-weight: 400; }
.plans td { color: var(--text-2); white-space: nowrap; }
.plans td .icon { width: 20px; height: 20px; color: var(--accent); vertical-align: -4px; }
.promise { font-size: 19px; font-weight: 600; margin: -8px 0 16px; }
.plans.steps td { color: var(--text); }
.plans.steps thead th { color: var(--text-2); font-size: 15px; font-weight: 600; }

.faq .row { padding: 0 20px; }
.faq .row + .row { border-top: .5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { flex: 1; font-size: 17px; font-weight: 600; line-height: 1.3; }
.faq summary::after { content: "›"; font-size: 24px; line-height: 1; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(90deg); }
[dir="rtl"] .faq details[open] summary::after { transform: rotate(-90deg); }
body:lang(ur) { line-height: 1.8; }
.faq p { color: var(--text-2); margin: 0 0 16px; }

.button {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  background: var(--accent); color: var(--on-accent);
}
.button.secondary { background: var(--tint); color: var(--tint-text); }
.button:hover { text-decoration: none; filter: brightness(1.05); }


.cta { background: var(--hero); color: #fff; text-align: center; padding: 64px 0 56px; margin-top: 32px; }
.cta img { border-radius: 22px; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.cta h2 { margin: 20px 0 8px; }
.cta p { color: var(--cream); }
.cta .actions { justify-content: center; }

/* Long-form pages */
.prose { max-width: 760px; padding-top: 32px; padding-bottom: 48px; }
.prose h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--text); }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.plain { padding-inline-start: 22px; }
.plain li { margin-bottom: 8px; }
.meta, .crumbs { color: var(--text-2); font-size: 15px; }
.crumbs a { color: var(--text-2); }
.translation { background: var(--tint); color: var(--tint-text); padding: 12px 16px; border-radius: 14px; }
.translation a { text-decoration: underline; }
.lead-dark { font-size: 19px; color: var(--text-2); }
.answer-grid .actions { margin: 8px 0 0; }
.answer-grid .badge img { height: 44px; }
.answer-grid { display: grid; grid-template-columns: 1fr 200px; gap: 32px; align-items: start; margin: 8px 0 8px; }
.answer { font-size: 20px; line-height: 1.5; background: var(--surface); padding: 20px 22px; border-radius: 22px; box-shadow: var(--shadow); border-inline-start: 4px solid var(--accent); }
.phone.small { width: 200px; }
.app-box { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin: 40px 0 8px; flex-wrap: wrap; }
.app-box img { border-radius: 14px; }
.app-box .app-name { font-size: 19px; font-weight: 700; color: var(--text); }
.app-box p { margin: 0; color: var(--text-2); font-size: 15px; }
.app-box div { flex: 1; min-width: 180px; }
.app-box .badge { margin: 12px 0; }
.app-box .badge img { height: 48px; }
.links li { margin-bottom: 6px; }
.guides .card h3 { font-size: 18px; margin-bottom: 8px; }

.site-footer { padding: 40px 0 56px; color: var(--text-2); font-size: 14px; border-top: .5px solid var(--line); }
.site-footer p { line-height: 2.1; }
.site-footer a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.maker { display: flex; align-items: center; gap: 8px; }
.maker-logo img { border-radius: 5px; display: block; }
.fine { font-size: 12px; opacity: .85; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 40px; }
  .hero-text { padding-bottom: 32px; }
  .hero-phone .phone { width: min(240px, 62vw); margin-bottom: -140px; }
  /* The section links move to their own scrollable row under the bar. */
  .bar { flex-wrap: wrap; gap: 8px 12px; }
  .get { margin-inline-start: auto; }
  .nav { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; padding-bottom: 10px; gap: 18px; white-space: nowrap; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .lang ul { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .answer-grid { grid-template-columns: 1fr; }
  .answer-grid .phone { width: min(220px, 60vw); margin: 8px auto 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .plans th, .plans td { padding: 10px 12px; }
  .plans td, .plans thead th { white-space: nowrap; }
  .plans tbody th { width: 100%; }
  .section { padding: 32px 16px; }
  .shots { padding-top: 40px; }
  .lang summary span { display: none; }
  .lang summary { padding: 6px 10px; }
  /* Feature and privacy cards become one grouped list, as in iOS Settings. */
  .cards:not(.guides) { gap: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); }
  .cards:not(.guides) .card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 18px; background: none; box-shadow: none; border-radius: 0; }
  .cards:not(.guides) .card .icon { grid-row: span 2; margin: 0; }
  .cards:not(.guides) .card + .card { border-top: .5px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
