/* Calando product page. Self-hosted like the legal pages: no font CDN, no
   scripts (the CSP in _headers allows only this site's own styles and
   images). Colours are the app's own: warm paper, navy, amber, teal. */
:root {
  --paper: #f6f4ee;
  --card: #ffffff;
  --ink: #26282e;
  --body: #4a4d56;
  --muted: #6b6a5c;
  --rule: #e6e3da;
  --navy: #34558b;
  --navy-deep: #2c477a;
  --navy-tint: #e4eaf3;
  --amber: #e09a2e;
  --amber-tint: #fcf0da;
  --teal: #216672;
  --teal-tint: #e0f0f1;
  --green: #1f7a54;
  --green-tint: #e7f4ec;
  --shadow: 0 18px 40px rgba(38, 40, 46, 0.12), 0 2px 6px rgba(38, 40, 46, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15171c;
    --card: #1e2128;
    --ink: #f0eee8;
    --body: #c9c7c0;
    --muted: #a3a196;
    --rule: #30333b;
    --navy: #8fb0e6;
    --navy-deep: #b5cbf0;
    --navy-tint: #232c3d;
    --amber: #f0b45a;
    --amber-tint: #33291a;
    --teal: #7cc6d1;
    --teal-tint: #1c2e31;
    --green: #7fd1a8;
    --green-tint: #1b2c24;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
        "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
/* Korean breaks between words, not inside them ("차례인/지"). */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
a { color: var(--navy); }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 20px; }

/* ---- header ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-block: 22px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-weight: 700;
  font-size: 1.125rem; letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-size: 0.9375rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a[aria-current] { color: var(--ink); font-weight: 600; }

/* ---- hero ---- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding-block: 32px 64px;
}
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal);
  background: var(--teal-tint); padding: 4px 10px; border-radius: 999px;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.18;
  letter-spacing: -0.03em; margin: 18px 0 16px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--navy); }
.lede { font-size: 1.125rem; color: var(--body); margin: 0 0 28px; max-width: 34rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-height: 54px; padding: 8px 20px; border-radius: 14px;
  text-decoration: none; line-height: 1.25;
}
.store small { font-size: 0.75rem; opacity: 0.8; }
.store strong { font-size: 1.0625rem; }
.store.on { background: var(--ink); color: var(--paper); }
.store.off {
  border: 1.5px dashed var(--rule); color: var(--muted); cursor: default;
}
.note { font-size: 0.875rem; color: var(--muted); margin: 14px 0 0; }

.hero-shots { position: relative; display: flex; justify-content: center; padding-bottom: 28px; }
.phone {
  width: 230px; border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow); border: 6px solid var(--card);
  background: var(--card);
}
/* The top of a screen is where its point is; the full 19.5:9 height made
   every block taller than the screen it sat on. */
.phone img {
  width: 100%; height: auto; aspect-ratio: 9 / 16;
  object-fit: cover; object-position: top;
}
.hero-shots .phone:first-child { transform: rotate(-4deg) translateX(24px); z-index: 1; }
.hero-shots .phone:last-child { transform: rotate(5deg) translate(-24px, 28px); }

/* ---- sections ---- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.25;
  letter-spacing: -0.02em; margin: 0 0 12px; text-wrap: balance;
}
.section-lede { color: var(--body); margin: 0 0 36px; max-width: 40rem; }

/* story sections: one screenshot and the words for it, alternating */
section.tint { background: var(--card); }
.story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px;
  align-items: center;
}
.story.flip > :first-child { order: 2; }
.story h2 { margin: 14px 0 14px; }
.story p { color: var(--body); margin: 0 0 16px; max-width: 34rem; }
.shot {
  margin: 0; justify-self: center; width: 100%; max-width: 440px;
  border-radius: 26px; overflow: hidden; background: var(--card);
  border: 6px solid var(--card); box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.points { list-style: none; margin: 0; padding: 0; color: var(--body); }
.points li { position: relative; padding-left: 22px; margin: 8px 0; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--green);
}
.points.navy li::before { background: var(--navy); }
.points.amber li::before { background: var(--amber); }

/* the pause card, drawn rather than photographed so it reads in both
   languages and both themes */
.pause-card {
  justify-self: center; width: 100%; max-width: 460px;
  display: grid; gap: 10px; padding: 30px 32px;
  background: var(--card); border: 1.5px solid var(--rule);
  border-radius: 26px; box-shadow: var(--shadow);
}
.pc-title { font-size: 1.25rem; }
.pc-big { font-size: 1.375rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.pc-big span { white-space: nowrap; }
.pc-sub { font-size: 1.0625rem; color: var(--body); }
.pc-note { font-size: 0.9375rem; color: var(--muted); }

/* change: photo pairs and the avatar */
#change h2 { margin: 14px 0 12px; }
.pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pair, .avatar {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 22px;
  padding: 20px;
}
.pair h3, .avatar h3 { font-size: 1.0625rem; margin: 0 0 14px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo figure { margin: 0; }
.duo img { width: 100%; height: auto; border-radius: 14px; }
.duo figcaption { font-size: 0.8125rem; color: var(--body); margin-top: 6px; }
.avatar {
  display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 40px;
  align-items: center; margin-top: 20px;
}
.avatar img { width: 100%; height: auto; border-radius: 14px; }
.avatar p { color: var(--body); margin: 0 0 10px; }
.avatar .bmi { font-size: 1.625rem; font-weight: 800; color: var(--navy); margin: 4px 0; }

/* daily: the two everyday screens, smaller */
.daily { display: flex; flex-wrap: wrap; gap: 48px; justify-content: center; }
.daily figure { margin: 0; display: grid; gap: 14px; justify-items: center; }
.daily .phone { width: 230px; }
.daily figcaption { color: var(--body); font-size: 0.9375rem; text-align: center; }
.daily figcaption strong { display: block; color: var(--ink); }
.note.gen { margin-top: 12px; }

.tag {
  display: inline-block; font-size: 0.8125rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.tag.navy { background: var(--navy-tint); color: var(--navy-deep); }
.tag.amber { background: var(--amber-tint); color: #8a5e15; }
.tag.teal { background: var(--teal-tint); color: var(--teal); }
.tag.green { background: var(--green-tint); color: var(--green); }
@media (prefers-color-scheme: dark) { .tag.amber { color: var(--amber); } }

/* principles: three cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 18px; padding: 22px 22px 18px;
}
.card h3 { font-size: 1.0625rem; margin: 0 0 8px; }
.card p { color: var(--body); font-size: 0.9688rem; margin: 0; }

/* plan */
.plan { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan .card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.plan .card ul { margin: 6px 0 0; padding-left: 1.1em; color: var(--body); font-size: 0.9688rem; }
.plan .card li { margin: 4px 0; }
.plan .plus { border-color: var(--navy); }

.disclaimer {
  background: var(--amber-tint); border-radius: 16px; padding: 18px 22px;
  color: var(--body); font-size: 0.9375rem; margin-top: 28px;
}
.disclaimer strong { color: var(--ink); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--rule); padding: 36px 0 64px;
  color: var(--muted); font-size: 0.875rem;
}
footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; }
footer .links a { color: var(--ink); text-decoration: none; font-weight: 600; }
footer dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; margin: 0 0 14px; }
footer dt { color: var(--muted); }
footer dd { margin: 0; color: var(--body); }
footer a { color: var(--navy); }

/* ---- narrow screens ---- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block-start: 12px; }
  .hero-shots .phone { width: 190px; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .story.flip > :first-child { order: 0; }
  .shot, .pause-card { max-width: 400px; }
  .pairs, .avatar { grid-template-columns: 1fr; }
  .avatar { gap: 16px; }
  .daily { gap: 24px; }
  .daily .phone { width: 160px; border-width: 4px; border-radius: 24px; }
  .cards, .plan { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  body { font-size: 16px; }
  .top nav { gap: 12px; font-size: 0.875rem; }
  .hero-shots .phone { width: 160px; border-width: 4px; border-radius: 26px; }
  .hero-shots .phone:first-child { transform: rotate(-4deg) translateX(14px); }
  .hero-shots .phone:last-child { transform: rotate(5deg) translate(-14px, 20px); }
}

/* subscription terms and the closing download block */
.terms { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: 0.9375rem; }
.terms dt { font-weight: 700; color: var(--ink); }
.terms dd { margin: 0; color: var(--body); }
@media (max-width: 420px) { .terms { grid-template-columns: 1fr; } .terms dd { margin-bottom: 8px; } }
.shot figcaption { padding: 10px 12px 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.avatar .bmi small { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
section#get { text-align: center; }
.get .section-lede { margin-inline: auto; }
.get .stores { justify-content: center; }
a:focus-visible, .store:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }

/* blog */
.top nav a[aria-current] { color: var(--ink); }
.post { max-width: 44rem; padding-block: 8px 64px; }
.post h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin: 8px 0 10px; }
.post .crumb { margin: 0; font-size: 0.875rem; }
.post .byline { color: var(--muted); font-size: 0.875rem; margin: 0 0 28px; }
.post article h2 { font-size: 1.375rem; margin: 36px 0 10px; }
.post article p, .post article li { color: var(--body); }
.post article ul { padding-left: 1.2em; }
.post article li { margin: 6px 0; }
.post .shot { margin: 28px auto; max-width: 320px; }
.post .related { list-style: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.weigh { border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9375rem; min-width: 30rem; }
.weigh th, .weigh td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: right; }
.weigh th:first-child { text-align: left; }
.post-end { margin-top: 44px; display: grid; gap: 20px; }
.post-end .disclaimer { margin: 0; }
.cta-box { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; }
.cta-box p { margin: 0 0 14px; color: var(--body); }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post-list li { background: var(--card); border: 1px solid var(--rule); border-radius: 18px; padding: 20px 22px; }
.post-list a { text-decoration: none; }
.post-list h2 { font-size: 1.25rem; margin: 0 0 6px; color: var(--ink); }
.post-list p { margin: 0 0 6px; color: var(--body); }
.post-list .byline { margin: 0; }
