/* syncpill.com. The app's own look: iOS grey, white grouped lists, one blue.
   The blue band at the top is the one loud thing on the page. */
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/fonts/public-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/fonts/public-sans-600.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(/fonts/public-sans-700.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 800; font-display: swap; src: url(/fonts/public-sans-800.woff2) format("woff2"); }

:root {
  --ground: #f2f2f7;
  --card: #ffffff;
  --ink: #1c1c1e;
  --muted: #5d5d66;
  --rule: #dcdce2;
  --blue: #1458c7;
  --blue-deep: #0f47a3;
  --on-blue: #ffffff;
  --on-blue-soft: #d7e4fb;
  --green: #1e6b47;
  --frame: #16161a;
  --font: "Public Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #000000; --card: #1c1c1f; --ink: #f2f2f5; --muted: #a3a3ad; --rule: #34343a;
    --blue-deep: #0c3a85; --green: #5fcf95; --frame: #3a3a40; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #000000; --card: #1c1c1f; --ink: #f2f2f5; --muted: #a3a3ad; --rule: #34343a;
  --blue-deep: #0c3a85; --green: #5fcf95; --frame: #3a3a40; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.5; }
:lang(ja) body, body:lang(ja) { font-family: "Public Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; line-break: strict; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: #7fb0ff; } }
:focus-visible { outline: 3px solid #f5b400; outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ------------------------------------------------ top band */
.band { background: var(--blue); color: var(--on-blue); padding-top: env(safe-area-inset-top, 0px); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-blue); text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.3px; }
.mark { width: 36px; height: 36px; border-radius: 9px; background: var(--on-blue); display: grid; place-items: center; flex: none; }
.top nav { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 16px; }
.top nav a { color: var(--on-blue); text-decoration: none; font-weight: 600; padding: 6px 0; }
.top nav a:hover { text-decoration: underline; }
.langs { display: flex; gap: 2px; background: rgba(255,255,255,.14); border-radius: 9px; padding: 2px; }
.langs a { padding: 4px 10px !important; border-radius: 7px; font-weight: 600; }
.langs a[aria-current="true"] { background: var(--on-blue); color: var(--blue) !important; text-decoration: none !important; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: center; padding-block: 40px 0; }
.duo { margin-bottom: 28px; }
.hero h1 {
  margin: 0; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; font-weight: 800; letter-spacing: -1.2px; text-wrap: balance;
}
.hero h1:lang(ja) { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; letter-spacing: 0; }
.hero .sub { margin: 22px 0 0; font-size: 19px; line-height: 1.55; color: var(--on-blue-soft); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-bottom: 48px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px;
  border-radius: 12px; font: inherit; font-size: 17px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
}
.btn-light { background: var(--on-blue); color: var(--blue); }
.btn-light:hover { background: #eaf1fd; }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.55); font-size: 16px; font-weight: 600; }

/* The two phones: Mom's taps, yours updates. */
.duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: end; max-width: 600px; justify-self: end; width: 100%; }
.phone { margin: 0; }
.phone + .phone { transform: translateY(36px); }
.screen {
  position: relative; border: 9px solid var(--frame); border-radius: 44px; overflow: hidden;
  background: #f2f2f7; aspect-ratio: 390 / 844;
}
.screen img { position: absolute; inset: 0; width: 100%; height: auto; }
.screen .after { opacity: 0; transition: opacity .45s ease; }
.duo.mom-done .mom .after, .duo.done .after { opacity: 1; }
.phone figcaption { font-size: 15px; font-weight: 700; color: var(--on-blue); margin-bottom: 10px; }
.tap {
  position: absolute; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 2px rgba(20, 88, 199, .6); opacity: 0; pointer-events: none;
}
.tap.on { animation: tap .5s ease-out; }
@keyframes tap { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.replay {
  grid-column: 1 / -1; justify-self: end; margin-top: 44px; background: var(--blue-deep); color: var(--on-blue); border: 0;
  font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; cursor: pointer; opacity: 0; transition: opacity .2s;
}
.duo.done .replay { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .screen .after { transition: none; }
  .tap { display: none; }
}

/* ------------------------------------------------ sections */
main section { padding-block: 64px 0; }
h2 { margin: 0 0 24px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; letter-spacing: -0.6px; font-weight: 800; text-wrap: balance; max-width: 22em; }
h2:lang(ja) { letter-spacing: 0; line-height: 1.35; }
h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
p { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 14px;
}
.steps p { color: var(--muted); max-width: 32em; }

.strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: -4px; padding-inline: 4px; }
.strip img { flex: none; width: 220px; height: auto; border-radius: 14px; scroll-snap-align: start; }
.strip:focus-visible { outline-offset: 6px; }

.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list { background: var(--card); border-radius: 14px; overflow: hidden; }
.list > * + * { border-top: 1px solid var(--rule); }
.role { padding: 20px 22px 8px; }
.role ul { list-style: none; margin: 0; padding: 0; }
.role li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--rule); }
.role li svg { flex: none; margin-top: 4px; color: var(--green); }

.prices .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px 24px; padding: 18px 22px; }
.prices dt { font-weight: 700; }
.prices dd { margin: 0; }
.prices .amount { font-weight: 700; font-size: 20px; }
.prices .detail { color: var(--muted); margin-top: 4px; }
.note { color: var(--muted); font-size: 15px; margin: 12px 4px 0; }

.privacy p { max-width: 40em; }
.privacy a { display: inline-block; margin-top: 14px; font-weight: 700; }

.faq details { padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--muted); max-width: 44em; }

.contact { margin-top: 28px; }
.contact a { font-weight: 700; }

footer { margin-top: 72px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }

/* ------------------------------------------------ narrow screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 20px; }
  .actions { padding-bottom: 8px; }
  .duo { justify-self: stretch; max-width: 520px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .roles { grid-template-columns: minmax(0, 1fr); }
  .prices .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .duo { gap: 12px; }
  .screen { border-width: 6px; border-radius: 28px; }
  .phone figcaption { font-size: 13px; }
  .phone + .phone { transform: translateY(20px); }
  .strip img { width: 180px; }
}
