/* OhChu brand: 01 Coral / Teal (docs/OhChu_Brand_And_Web_Pack). No web fonts: system and rounded system faces. */
:root {
  --coral: #ff6b6b;
  --coral-ink: #c93c38; /* coral dark enough for small text */
  --teal: #14c9b6;
  --teal-ink: #096e64; /* teal dark enough for small text on --teal-soft */
  --sun: #ffd44d;
  --navy: #1f2a44;
  --bg: #fff8f6;
  --surface: #ffffff;
  --soft: #fff0f0;
  --teal-soft: #dcf6f2;
  --text: #1f2a44;
  --muted: #5d6882;
  --line: #f6dfdc;
  --band: #fff0ec;
  --head: rgba(255, 248, 246, 0.82);
  --btn: #c93c38;
  --btn-ink: #ffffff;
  --shadow: 0 18px 40px -18px rgba(31, 42, 68, 0.22);
  --phone-shadow: 0 50px 90px -40px rgba(31, 42, 68, 0.55);
  --blob-a: rgba(255, 107, 107, 0.16);
  --blob-b: rgba(20, 201, 182, 0.16);

  /* The app's own dark theme (apps/ios/OhChu/Views/Shared/Palette.swift), in both page themes: these are pictures of it. */
  --app-bg: #0f1524;
  --app-surface: #18213a;
  --app-text: #f6f1ef;
  --app-muted: #a9b2c7;
  --app-accent: #4fe0cf;
  --app-on-accent: #0e1726;
  --app-mine: #ff8a87;
  --app-on-mine: #2a0f12;
  --app-on-mine-muted: #5e2224;
  --app-theirs: #1e3a44;
  --app-on-theirs-muted: #c9d0de;
  --app-line: #2c3753;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --coral-ink: #ff8a87;
    --teal-ink: #4fe0cf;
    --bg: #141b2d;
    --surface: #1f2a44;
    --soft: #2a2438;
    --teal-soft: #173a44;
    --text: #f6f1ef;
    --muted: #a9b2c7;
    --line: #2c3753;
    --band: #19223a;
    --head: rgba(20, 27, 45, 0.82);
    --btn: #ff8a87;
    --btn-ink: #2a0f12;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    --phone-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.8);
    --blob-a: rgba(255, 107, 107, 0.12);
    --blob-b: rgba(20, 201, 182, 0.1);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(620px 620px at -6% -4%, var(--blob-a), transparent 70%),
    radial-gradient(760px 760px at 104% 2%, var(--blob-b), transparent 70%), var(--bg);
  background-repeat: no-repeat;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
h1,
h2,
h3,
.wordmark,
.btn,
.soon {
  font-family:
    ui-rounded,
    "SF Pro Rounded",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Apple SD Gothic Neo",
    sans-serif;
}
p {
  margin: 0;
}
a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: 20px;
}
.nowrap {
  white-space: nowrap;
}

/* Header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--head);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.top {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: auto;
}
.wordmark {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wordmark.small {
  font-size: 20px;
}
.oh {
  color: var(--text);
}
.chu {
  color: var(--coral);
  margin-left: 2px;
}
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a,
.foot-nav a {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover,
.foot-nav a:hover {
  color: var(--text);
}
.lang {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.lang:hover {
  color: var(--text);
}
.soon {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-block: 44px 96px;
}
h1 {
  font-size: clamp(44px, 6.6vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 22px;
}
.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 27em;
}
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}
.btn:hover {
  filter: brightness(1.06);
}
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-mascot {
  position: absolute;
  /* Beside the phone, overlapping only its edge, so it never covers the app. */
  left: calc(50% - 159px - 112px);
  bottom: 44px;
  z-index: 2;
  width: 124px;
  height: auto;
}

/* A phone, and what's on it */
.phone {
  width: 318px;
  max-width: 100%;
  padding: 10px;
  border-radius: 54px;
  background: #0a0e18;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    var(--phone-shadow);
}
.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 626px;
  padding: 54px 12px 14px;
  border-radius: 44px;
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-text);
  font-size: 15px;
  line-height: 1.35;
}
.island {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 92px;
  height: 27px;
  margin-left: -46px;
  border-radius: 999px;
  background: #000;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 2px;
  color: var(--app-muted);
}
.back {
  font-size: 24px;
  line-height: 1;
}
.app-title {
  color: var(--app-text);
  font-weight: 800;
  font-size: 17px;
}
.more {
  font-size: 10px;
  letter-spacing: 1px;
}
.now {
  border-radius: 24px;
  padding: 13px 17px 14px;
}
.now.mine {
  background: var(--app-mine);
  color: var(--app-on-mine);
}
.now.theirs {
  background: var(--app-theirs);
}
.now-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.mine .now-top {
  color: var(--app-on-mine-muted);
}
.theirs .now-top {
  color: var(--app-on-theirs-muted);
}
.tone {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(42, 15, 18, 0.12);
  color: var(--app-on-mine);
}
.now-ko {
  font-size: 29px;
  line-height: 1.32;
  font-weight: 700;
  word-break: keep-all;
}
.now-means {
  margin-top: 6px;
  color: var(--app-on-mine-muted);
}
.now-en {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
}
.now-sub {
  margin-top: 4px;
  color: var(--app-on-theirs-muted);
}
.now-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.show {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--app-on-mine);
  color: var(--app-mine);
  font-size: 14px;
  font-weight: 700;
}
.round {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(42, 15, 18, 0.12);
}
.round svg {
  width: 19px;
  height: 19px;
  fill: var(--app-on-mine);
}
.app-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
/* As in the app (ADR-0034): Show and 답장하기 side by side, just above the box. */
.foot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.foot-actions .show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 18px;
  background: var(--app-mine);
  color: var(--app-on-mine);
  font-size: 14px;
}
.foot-actions .reply {
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 7px 8px;
}
.reply {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 18px;
  background: var(--app-accent);
  color: var(--app-on-accent);
}
.reply b {
  font-size: 20px;
  font-weight: 800;
}
.reply small {
  font-size: 13px;
  font-weight: 600;
}
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: var(--app-surface);
  color: var(--app-muted);
  font-size: 16px;
}
.composer i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--app-line);
  color: var(--app-muted);
  font-style: normal;
  font-weight: 800;
}

/* Sections */
.band {
  padding-block: 8px 88px;
}
h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 14px;
}
.section-lede {
  max-width: 34em;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 36px;
}

/* How it works */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
}
.step {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.step h3 {
  margin: 22px 10px 8px;
}
.step p {
  margin-inline: 10px;
  color: var(--muted);
}
h3 {
  line-height: 1.25;
  font-size: 22px;
  font-weight: 800;
}
.frag {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 196px;
  padding: 16px;
  border-radius: 18px;
  background: var(--app-bg);
  color: var(--app-text);
  line-height: 1.3;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}
.person img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.person em {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--app-theirs);
  color: var(--app-accent);
  font-size: 13px;
  font-style: normal;
  white-space: nowrap;
}
.mini-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--app-mine);
  color: var(--app-on-mine);
}
.mini-card small,
.star-text small {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
}
.mini-card small {
  color: var(--app-on-mine-muted);
}
.mini-card b,
.star-text b {
  display: block;
  font-size: 20px;
  font-weight: 700;
  word-break: keep-all;
}
.star-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--app-theirs);
}
.star-text small {
  margin-top: 2px;
  color: var(--app-on-theirs-muted);
  font-weight: 500;
}
.round.on {
  background: var(--sun);
}
.round.on svg {
  fill: var(--navy);
}
.star-note {
  align-self: flex-end;
  color: var(--app-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Learn */
.learn-band {
  padding-block: 84px;
  margin-bottom: 84px;
  background: var(--band);
}
.learn {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.learn-art {
  display: flex;
  justify-content: center;
}
.lesson-steps {
  list-style: none;
  counter-reset: lesson;
  display: grid;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
}
.lesson-steps li {
  position: relative;
  counter-increment: lesson;
  min-height: 34px;
  padding: 3px 0 0 48px;
  font-size: 18px;
}
.lesson-steps li::before {
  content: counter(lesson);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-ink);
  font-weight: 800;
  line-height: 34px;
  text-align: center;
}
.learn-note {
  max-width: 32em;
  color: var(--muted);
}
.lesson-top {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  color: var(--app-muted);
}
.lesson-top .back {
  margin-right: 8px;
  font-size: 22px;
}
.lesson-top small {
  margin-left: 8px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.seg {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--app-line);
}
.seg.on {
  background: var(--app-accent);
}
.lesson-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 8px 6px 0;
}
.lesson-from {
  color: var(--app-muted);
  font-size: 13.5px;
}
.lesson-ko {
  font-size: 31px;
  line-height: 1.28;
  font-weight: 800;
  word-break: keep-all;
}
.lesson-en {
  font-size: 17px;
}
.hear {
  display: flex;
  gap: 8px;
}
.hear span {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--app-surface);
  font-size: 14px;
  font-weight: 700;
}
.parts {
  border-radius: 18px;
  background: var(--app-surface);
  overflow: hidden;
}
.parts small {
  display: block;
  padding: 10px 14px 6px;
  color: var(--app-muted);
  font-size: 12.5px;
  font-weight: 700;
}
.parts p {
  padding: 7px 14px;
  border-top: 1px solid var(--app-line);
  font-size: 14px;
}
.parts b {
  margin-right: 8px;
  font-size: 17px;
}
.pattern {
  padding: 0 4px;
  color: var(--app-muted);
  font-size: 14px;
}
.pattern b {
  margin-right: 4px;
  color: var(--app-text);
}
.lesson-btn {
  margin-top: auto;
  padding: 12px;
  border-radius: 16px;
  background: var(--app-accent);
  color: var(--app-on-accent);
  font-weight: 800;
  text-align: center;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.card img {
  width: 64px;
  height: 64px;
  display: block;
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 8px;
}
.card p {
  color: var(--muted);
}

/* Privacy */
.privacy {
  padding: 52px;
  margin-bottom: 72px;
  border-radius: 34px;
  background: var(--navy);
  color: #f6f1ef;
}
.privacy h2 {
  margin-bottom: 28px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 40px;
}
.checks li {
  position: relative;
  padding-left: 36px;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4fe0cf;
  color: #0e1726;
  font-size: 14px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

/* For someone who was sent a chat link, in Korean */
.ko {
  padding-block: 0 72px;
  word-break: keep-all;
}
.ko-steps {
  display: grid;
  gap: 12px;
  max-width: 40em;
  margin: 0 0 36px;
  padding-left: 1.3em;
  font-size: 18px;
  line-height: 1.6;
}
.ko-privacy {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}
.ko-privacy h3 {
  margin: 0 0 18px;
}
.ko-privacy .checks li::before {
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.ko-contact {
  margin: 22px 0 0;
  color: var(--muted);
}
.ko-contact a {
  color: var(--coral-ink);
  font-weight: 700;
}

/* Footer */
.site-foot {
  border-top: 1px solid var(--line);
}
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 32px;
  padding-block: 26px 34px;
  color: var(--muted);
  font-size: 15px;
}
.foot .brand img {
  width: 34px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.foot-nav a {
  font-size: 15px;
}

/* 404 */
.notfound {
  padding-block: 64px;
}
.notfound a {
  color: var(--coral-ink);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (max-width: 920px) {
  .hero,
  .learn {
    /* minmax(0, …): otherwise the phone's width sets the column's minimum and the page scrolls sideways. */
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .hero {
    padding-block: 20px 72px;
  }
  .steps,
  .grid,
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }
  .frag {
    min-height: 0;
  }
  .learn-band {
    padding-block: 64px;
    margin-bottom: 64px;
  }
  .privacy {
    padding: 34px 24px;
  }
  .foot-nav {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .hero-mascot {
    display: none; /* the phone takes the full width here, and the logo is just above */
  }
}
@media (max-width: 420px) {
  h1 {
    font-size: 12vw;
  }
  .soon {
    font-size: 12px;
    padding: 6px 10px;
  }
  .wordmark {
    font-size: 23px;
  }
  .lede,
  .section-lede {
    font-size: 19px;
  }
}
