/* Parley's website, after DingRush's: dark bands, heavy condensed italic headlines and one bright accent,
   here Parley's yellow, with the app icon's colors drifting through the motto. */

:root {
  --bg: #0f1116;
  --band: #151820;
  --band-2: #0b0d11;
  --card: #1a1d26;
  --stroke: #2c303b;
  --text: #f3f4f6;
  --muted: #a3a8b5;
  --accent: #fabd24;
  --accent-ink: #14110a;
  --blue: #5b8cff;
  --green: #4ade80;
  --red: #f87171;
  --bubble-me: #3b6df0;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f4ee;
  --band: #ece8de;
  --band-2: #fbfaf6;
  --card: #ffffff;
  --stroke: #ddd7c8;
  --text: #15161b;
  --muted: #5d6170;
  --accent: #f2a900;
  --accent-ink: #15120a;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --bubble-me: #2563eb;
  --shadow: 0 30px 70px rgba(60, 50, 20, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { width: 1.15em; height: 1.15em; flex: none; }

.page { overflow-x: clip; }
.page > section, .nav, .footer { padding-inline: max(20px, calc((100vw - 1180px) / 2)); }

/* Headlines: condensed, heavy, italic, upper case. */
h1, h2, h3, .end-title { font-family: var(--head); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: 0; margin: 0; }
h2 { font-size: clamp(44px, 7vw, 92px); line-height: 0.92; }
h2 span, .headline span, .end-title span { display: block; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 19px; margin: 18px 0 0; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 24px; height: 76px; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--stroke) 60%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: italic 900 24px var(--head); text-decoration: none; text-transform: uppercase; }
.mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.round { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--stroke);
  background: transparent; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 13px; }
.round:hover { border-color: var(--muted); }
.nav-cta { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 800; padding: 9px 18px; border-radius: 999px; font-size: 15px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; align-items: center; padding-block: 70px 90px; }
.kicker { color: var(--accent); font-weight: 700; font-size: 19px; margin: 0 0 14px; }
.headline { font-size: clamp(56px, 8.4vw, 112px); line-height: 0.88; }
.rainbow {
  background: linear-gradient(90deg, #266beb, #1aa369, #fabd24, #f5731c, #db2626, #266beb, #1aa369, #fabd24);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: drift 9s linear infinite;
  padding-right: 0.08em;
}
@keyframes drift { from { background-position: 0% 50%; } to { background-position: 150% 50%; } }
.lede { font-size: 20px; color: var(--muted); max-width: 560px; margin: 26px 0 0; }
.not-just { display: flex; gap: 12px; align-items: center; font-weight: 600; margin: 22px 0 0; max-width: 520px; }
.dots { display: inline-flex; gap: 4px; padding: 8px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.3s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.16s; }
.dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes typing { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; scroll-margin-top: 120px; }
.store-button { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; text-decoration: none; border: 2px solid var(--accent); transition: transform 0.15s ease; }
.store-button:hover { transform: translateY(-2px); }
.store-button.ghost { background: transparent; color: var(--text); border-color: var(--stroke); }
.store-button.ghost:hover { border-color: var(--text); }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; max-width: 560px; }

/* The phone */
.hero-phone { display: flex; justify-content: center; }
.phone { width: min(360px, 100%); height: 640px; border-radius: 46px; padding: 14px; background: #08090c; box-shadow: var(--shadow), inset 0 0 0 2px #2a2d35;
  display: flex; flex-direction: column; position: relative; }
.phone-top { display: flex; justify-content: space-between; align-items: center; padding: 6px 22px 10px; font-size: 13px; font-weight: 700; color: #e5e7eb; }
.notch { width: 92px; height: 26px; border-radius: 20px; background: #000; }
.phone-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 22px 22px 0 0; background: #1c1e23; color: #f3f4f6; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #b38bff; font-weight: 700; font-size: 14px; color: #fff; transition: background 0.4s; }
.who { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.who b { font-size: 15px; }
.who small { color: #9ca3af; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.abc { font-weight: 800; font-size: 12px; color: #6b7280; transition: color 0.3s; }
.abc.on { color: #5b8cff; }
.phone-chat { flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px; background: #111215; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.4; animation: bubble-in 0.35s ease both; position: relative; }
.bubble.them { align-self: flex-start; background: #1c1e23; color: #f3f4f6; border: 1px solid #30333a; border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--bubble-me); color: #fff; border-bottom-right-radius: 6px; }
.bubble ruby { ruby-position: over; }
.bubble rt { font-size: 10px; color: #9ca3af; letter-spacing: 0; }
.bubble .word { border-radius: 4px; transition: background 0.3s; }
.bubble .word.lit { background: rgba(179, 139, 255, 0.35); }
.bubble.typing { display: flex; gap: 5px; padding: 14px 16px; }
.bubble.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; animation: typing 1.3s infinite ease-in-out; }
.bubble.typing i:nth-child(2) { animation-delay: 0.16s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.32s; }
.chip { align-self: center; font-size: 11px; font-weight: 700; color: #fabd24; background: rgba(250, 189, 36, 0.12); padding: 4px 10px; border-radius: 999px; animation: bubble-in 0.35s ease both; }
.tooltip { position: absolute; left: 10px; bottom: calc(100% + 8px); background: #000; color: #fff; padding: 7px 11px; border-radius: 10px; font-size: 13px; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); animation: bubble-in 0.25s ease both; }
.tooltip b { display: block; font-size: 14px; }
.translation { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid #30333a; color: #c4c8d2; font-size: 13px; animation: bubble-in 0.35s ease both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.phone-composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 14px; background: #1c1e23; border-radius: 0 0 30px 30px; }
.phone-composer span { flex: 1; background: #2a2d34; color: #7d828e; border-radius: 20px; padding: 9px 14px; font-size: 14px; }
.phone-composer i { width: 34px; height: 34px; border-radius: 50%; background: #2a2d34; flex: none; }
.phone-composer i.send { background: #3b6df0; }

/* Levels keep the app's colors. */
.level { font-style: normal; font-weight: 800; font-size: 11px; padding: 1px 6px; border-radius: 6px; }
.level.a1 { color: #4ade80; background: rgba(74, 222, 128, 0.16); }
.level.a2 { color: #2dd4bf; background: rgba(45, 212, 191, 0.16); }
.level.b1 { color: #60a5fa; background: rgba(96, 165, 250, 0.16); }
.level.b2 { color: #a78bfa; background: rgba(167, 139, 250, 0.16); }
.level.c1 { color: #fbbf24; background: rgba(251, 191, 36, 0.16); }
.level.c2 { color: #f87171; background: rgba(248, 113, 113, 0.16); }

/* Compare */
.compare { background: var(--band); padding-block: 110px; }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 20px 18px; border-bottom: 1px solid var(--stroke); }
.compare-table thead th { font: italic 900 24px var(--head); text-transform: uppercase; border-bottom: 2px solid var(--stroke); }
.compare-table thead th.ours { background: var(--accent); color: var(--accent-ink); border-radius: 16px 16px 0 0; border-bottom-color: var(--accent); }
.compare-table tbody th { font: 800 19px var(--head); text-transform: uppercase; width: 22%; }
.compare-table td.ours { background: color-mix(in srgb, var(--accent) 7%, var(--card)); font-weight: 600; }
.compare-table tbody tr:last-child td.ours { border-radius: 0 0 16px 16px; }
.cell { display: flex; gap: 10px; }
.cell svg { margin-top: 4px; }
.cell.no { color: var(--muted); }
.cell.no svg { color: var(--red); }
.cell.yes svg { color: var(--green); }

/* How it works */
.how { padding-block: 110px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.steps li { padding: 20px 0; border-bottom: 1px solid var(--stroke); display: flex; flex-direction: column; gap: 6px; }
.steps b { font: italic 900 28px var(--head); text-transform: uppercase; color: var(--accent); }
.where-title { font-size: 34px; margin: 64px 0 22px; }
.where { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.where div { border: 1px solid var(--stroke); border-radius: 18px; padding: 24px; background: var(--card); }
.where dt { font: 800 24px var(--head); text-transform: uppercase; margin-bottom: 8px; }
.where dd { margin: 0; color: var(--muted); }

/* A day */
.day { background: var(--band-2); padding-block: 110px; }
.moments { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stroke); }
.moment { width: 100%; display: grid; grid-template-columns: 150px 210px minmax(0, 1.2fr) minmax(0, 1fr) 46px; gap: 20px; align-items: center; text-align: left;
  padding: 20px 8px; border: 0; border-bottom: 1px solid var(--stroke); background: transparent; cursor: pointer; }
.moment:hover { background: color-mix(in srgb, var(--card) 70%, transparent); }
.moment-time { font: italic 900 34px var(--head); }
.moment-where { font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; }
.moment-where small { letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 600; color: var(--accent); }
.moment-text { display: flex; flex-direction: column; }
.moment-text q { font: italic 800 26px/1.15 var(--head); quotes: "“" "”"; color: var(--accent); }
.moment-text .reading { color: var(--muted); font-size: 12px; }
.moment-meaning { max-height: 0; overflow: hidden; color: var(--text); font-weight: 600; transition: max-height 0.3s ease, margin 0.3s ease; }
.moment[aria-expanded="true"] .moment-meaning { max-height: 60px; margin-top: 6px; }
.moment-what { color: var(--muted); font-size: 15px; }
.moment-open { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--stroke); display: grid; place-items: center; transition: transform 0.25s; }
.moment[aria-expanded="true"] .moment-open { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }

/* Features */
.features { padding-block: 110px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { position: relative; border: 1px solid var(--stroke); border-radius: 20px; padding: 24px; background: var(--card); display: flex; flex-direction: column; gap: 8px; min-height: 200px;
  transition: transform 0.2s ease, border-color 0.2s ease; outline: none; }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--accent); }
.card b { font: italic 900 26px/1 var(--head); text-transform: uppercase; margin-top: auto; }
.card > span:not(.hello):not(.levels) { color: var(--muted); font-size: 15px; }
.hello { display: inline-flex; flex-direction: column; align-items: flex-start; font: 700 26px var(--body); color: var(--accent); }
.hello small { font-size: 11px; color: var(--muted); font-weight: 600; }
.hello em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); padding: 3px 8px; border-radius: 8px; margin-top: 6px;
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.card:hover .hello em, .card:focus-visible .hello em { opacity: 1; transform: none; }
.levels { display: flex; gap: 6px; flex-wrap: wrap; }
.card.soon { border-style: dashed; background: transparent; justify-content: flex-end; }
.card.soon b { color: var(--muted); }
.pill { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: var(--stroke); color: var(--text); padding: 3px 9px; border-radius: 999px; }

/* Plans */
.plans { background: var(--band); padding-block: 110px; }
.billing { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--stroke); border-radius: 999px; margin-bottom: 30px; }
.billing button { border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.billing button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.save { font-size: 11px; font-weight: 800; background: var(--green); color: #052e16; padding: 2px 7px; border-radius: 999px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; }
.plan { border: 1px solid var(--stroke); border-radius: 24px; padding: 30px; background: var(--card); display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--accent); }
.plan h3 { font-size: 40px; }
.plan.featured h3 { color: var(--accent); }
.pitch { color: var(--muted); margin: 4px 0 18px; }
.price { font: italic 900 60px/1 var(--head); margin: 0; }
.price small { font: 600 16px var(--body); color: var(--muted); margin-left: 6px; }
.price-note { color: var(--muted); font-size: 14px; margin: 8px 0 18px; min-height: 1em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { color: var(--green); margin-top: 3px; }
.plan-button { margin-top: auto; text-align: center; text-decoration: none; font-weight: 800; padding: 13px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); }
.plan-button.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--stroke); }
.plans-note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* FAQ */
.faq { padding-block: 110px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 56px; margin: 0; }
.faq-list dt { font: 800 22px/1.15 var(--head); text-transform: uppercase; margin-bottom: 8px; }
.faq-list dd { margin: 0; color: var(--muted); }

/* The closing band */
.end { background: var(--accent); color: var(--accent-ink); padding-block: 100px; }
.end-title { font-size: clamp(52px, 9vw, 132px); line-height: 0.9; }
.end-title .outline { color: transparent; -webkit-text-stroke: 2px var(--accent-ink); }
.end-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; font-weight: 800; }
.end-store, .end-mac { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; text-decoration: none; font-weight: 800; }
.end-store { background: var(--accent-ink); color: #fff; }
.end-mac { border: 2px solid var(--accent-ink); }

.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 30px; background: var(--band-2); }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }

/* Sections slide in as they come into view. */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-block: 40px 70px; }
  .nav-links { display: none; }
  .nav-end { margin-left: auto; }
  .steps, .faq-list { grid-template-columns: 1fr; }
  .where, .cards { grid-template-columns: 1fr 1fr; }
  .moment { grid-template-columns: 110px minmax(0, 1fr) 42px; }
  .moment-where { grid-column: 2; grid-row: 1; }
  .moment-text { grid-column: 1 / 3; }
  .moment-what { grid-column: 1 / 3; }
  .moment-open { grid-column: 3; grid-row: 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .where, .cards, .plan-grid { grid-template-columns: 1fr; }
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; width: 100%; }
  .compare-table tbody th { width: 100%; padding-bottom: 8px; border-bottom: 0; }
  .compare-table tr { border: 1px solid var(--stroke); border-radius: 16px; margin-bottom: 14px; overflow: hidden; }
  .compare-table td::before { content: attr(data-label); display: block; font: 800 14px var(--head); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
  .compare-table td.ours, .compare-table tbody tr:last-child td.ours { border-radius: 0; }
  .nav-cta { display: none; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
