/* Peekaboo — warm monochrome, matching the app's Theme.swift.
   The UI is grayscale with a warm undertone; coral appears only in the
   hand-drawn crayon doodles, never as UI chrome. */

:root {
  color-scheme: light dark;

  --canvas:         light-dark(#fbfaf8, #201e1c);
  --surface:        light-dark(#f7f5f2, #2a2724);
  --surface-raised: light-dark(#fefdfb, #332f2b);
  --ink:            light-dark(#2e2a26, #f4f2ef);
  --ink-secondary:  light-dark(#6e665f, #ada69f);
  --accent:         light-dark(#26221f, #f4f2ef);
  --on-accent:      light-dark(#fbfaf8, #26221f);
  --accent-subtle:  light-dark(#edeae6, #3b3733);
  --hairline:       light-dark(rgba(46, 42, 38, 0.14), rgba(244, 242, 239, 0.16));
  --coral:          light-dark(#f07a6b, #f08a7c);

  /* Baloo 2 stands in for the app's SF Rounded display face; body copy uses
     the system stack because the app itself sets SF Pro deliberately. */
  --font-display: "Baloo 2", ui-rounded, -apple-system, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --measure: 62ch;
  --space-page: clamp(1.25rem, 5vw, 3rem);
}

* { margin: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--coral); color: #fbfaf8; }

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* ---------- shared chrome ---------- */

.shell {
  max-width: 46rem;
  margin-inline: auto;
  padding-inline: var(--space-page);
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding-block: 1.5rem 0;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .by {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-secondary);
  letter-spacing: 0.01em;
}

.site-nav { display: flex; gap: 1.25rem; font-size: 0.9rem; }
.site-nav a { color: var(--ink-secondary); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-block: 2rem 3rem;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- landing ---------- */

.hero {
  padding-block: clamp(3.5rem, 10vw, 6.5rem) clamp(2.5rem, 7vw, 4rem);
}

.hero .doodle {
  width: clamp(120px, 24vw, 170px);
  margin-bottom: 1.75rem;
  transform: rotate(-4deg);
}

.hero h1 {
  font-size: clamp(2.6rem, 7.5vw, 4.25rem);
  max-width: 14ch;
}

.hero .lede {
  margin-top: 1.25rem;
  max-width: 44ch;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--ink-secondary);
}

.hero .cta-row {
  margin-top: 2.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
}
.pill:hover { text-decoration: none; }
.pill svg { flex: none; }

.free-note { font-size: 0.875rem; color: var(--ink-secondary); }

.section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.section + .section { border-top: 1px solid var(--hairline); }

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section h2 .doodle { width: 2rem; flex: none; transform: rotate(-6deg); }

/* ---------- app demo video ---------- */

.demo { width: min(290px, 78vw); margin: 0.5rem auto 3.25rem; }
.demo video {
  display: block;
  width: 100%;
  height: auto;
  border: 3px solid var(--ink);
  border-radius: 2.4rem;
  background: #fbfaf8;
}

/* steps: numbered ink circles, no card grid */
.steps { list-style: none; padding: 0; display: grid; gap: 1.5rem; }
.steps li {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 1rem;
  align-items: start;
}
.steps .num {
  font-family: var(--font-display);
  font-weight: 700;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent-subtle);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  transform: rotate(-3deg);
}
.steps strong { display: block; font-weight: 600; }
.steps p { color: var(--ink-secondary); font-size: 0.975rem; margin-top: 0.15rem; }

.looks { color: var(--ink-secondary); font-size: 0.975rem; margin-top: 0.35rem; }
.looks em {
  font-style: normal;
  border-bottom: 2px solid var(--coral);
}

/* privacy bullets */
.plain-list { list-style: none; padding: 0; display: grid; gap: 1rem; max-width: var(--measure); }
.plain-list li { padding-left: 1.6rem; position: relative; }
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--coral);
}
.plain-list strong { font-weight: 600; }

.aside-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  max-width: var(--measure);
}

/* pricing: two uneven columns, not twin cards */
.pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 38rem;
}
@media (min-width: 560px) {
  .pricing { grid-template-columns: 5fr 7fr; align-items: stretch; }
}
.price-block {
  border: 1px solid var(--hairline);
  border-radius: 1.25rem;
  padding: 1.5rem 1.5rem 1.4rem;
}
.price-block.pro { background: var(--surface); border-color: transparent; }
.price-block h3 { font-size: 1.15rem; }
.price-block .amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin-top: 0.4rem;
  font-variant-numeric: tabular-nums;
}
.price-block .amount span { font-family: var(--font-body); font-weight: 400; font-size: 0.9rem; color: var(--ink-secondary); }
.price-block p { color: var(--ink-secondary); font-size: 0.925rem; margin-top: 0.5rem; }

/* ---------- legal pages ---------- */

.doc { padding-block: clamp(3rem, 8vw, 5rem) 1rem; }
.doc-header { margin-bottom: 2.5rem; }
.doc-header h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); }
.doc-header .meta { margin-top: 0.75rem; color: var(--ink-secondary); font-size: 0.925rem; }

.doc article { max-width: var(--measure); }
.doc article h2 {
  font-size: 1.35rem;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}
.doc article h2:first-of-type { margin-top: 0; }
.doc article p + p { margin-top: 0.9rem; }
.doc article ul { padding-left: 1.25rem; margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.doc article li::marker { color: var(--coral); }

.summary-box {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.75rem;
  max-width: var(--measure);
}
.summary-box p { font-size: 0.975rem; }
.summary-box .label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  display: block;
  margin-bottom: 0.4rem;
}

/* ---------- support ---------- */

.faq { max-width: var(--measure); display: grid; gap: 0; margin-top: 1rem; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding-block: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-secondary);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.25rem; color: var(--ink-secondary); font-size: 0.975rem; }
.faq .answer p + p { margin-top: 0.6rem; }

.contact-card {
  margin-top: 2.5rem;
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 1.5rem 1.6rem;
  max-width: var(--measure);
}
.contact-card p { color: var(--ink-secondary); font-size: 0.95rem; margin-top: 0.35rem; }
.contact-card .email {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  border-bottom: 2px solid var(--coral);
}

/* ---------- entrance motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .rise:nth-child(2) { animation-delay: 0.08s; }
  .rise:nth-child(3) { animation-delay: 0.16s; }
  .rise:nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}

/* Landing refinement: warm paper, hand-drawn details, room for the product. */
:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .6rem 1rem; background: var(--canvas); }
.skip-link:focus { top: 1rem; }
.landing .shell { max-width: 76rem; }
.landing .site-header { align-items: center; padding-block: 1.5rem; border-bottom: 1px solid var(--hairline); }
.landing .wordmark { font-size: 2rem; letter-spacing: -.04em; }
.landing .site-nav { align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.landing .nav-download { color: var(--ink); border-bottom: 2px solid var(--coral); padding-block: .5rem; font-weight: 600; }
.landing .hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; padding-block: 4rem 5rem; }
.eyebrow { text-transform: uppercase; font-size: .72rem; font-weight: 650; letter-spacing: .14em; color: var(--ink-secondary); }
.landing .hero .doodle { width: 100px; margin: 1.6rem 0 .7rem; }
.landing .hero h1 { font-size: clamp(3rem, 5.6vw, 4.7rem); max-width: 15ch; line-height: 1.02; letter-spacing: -.035em; }
.hand-underline { position: relative; display: inline-block; isolation: isolate; }
.hand-underline::after { content: ''; position: absolute; z-index: -1; left: 0; right: -4%; bottom: .02em; height: .13em; border-radius: 50%; background: var(--coral); transform: rotate(-2deg); opacity: .7; }
.landing .hero .lede { font-size: 1.12rem; max-width: 39ch; margin-top: 1.8rem; }
.landing .hero .cta-row { align-items: center; flex-direction: row; gap: .75rem 1rem; margin-top: 2rem; }
.landing .pill { border-radius: 14px; padding: .95rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease; }
.landing .pill:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--coral); }
.text-link { display: inline-block; margin-top: 1.8rem; font-size: .9rem; text-decoration: none; }
.text-link span { margin-left: .5rem; }
.hero-preview { position: relative; padding: 2.75rem 1.5rem 2rem; isolation: isolate; }
.hero-preview::before { content: ''; position: absolute; inset: 12% -1% 7%; background: var(--accent-subtle); border-radius: 47% 50% 44% 48%; transform: rotate(-7deg); z-index: -1; }
.landing .demo { width: min(265px, 100%); margin: 0 auto; }
.landing .demo video { border-width: 2px; border-radius: 2rem; box-shadow: 0 18px 35px -25px var(--ink-secondary); }
.brand-strip { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-block: 1px solid var(--hairline); padding: 1.1rem 0; font-family: var(--font-display); font-size: clamp(.95rem, 2vw, 1.3rem); }
.brand-strip span[aria-hidden] { color: var(--coral); }
.landing .section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.landing .section h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -.025em; }
.landing .section > .eyebrow { margin-bottom: 1rem; }
.landing .steps { grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; margin-top: 2.7rem; }
.landing .steps .num { background: transparent; border: 1.5px solid var(--ink-secondary); border-radius: 45% 53% 48% 42%; width: 2.5rem; height: 2.5rem; font-size: 1.3rem; }
.landing .steps strong { font-family: var(--font-display); font-size: 1.25rem; }
.landing #privacy { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 4rem; }
.landing #privacy h2 { align-items: flex-start; }
.landing #privacy .aside-note { grid-column: 2; }
.landing .pricing { max-width: none; grid-template-columns: 1fr 1fr; gap: 2rem; }
.landing .price-block { border-radius: 0; border: 0; border-top: 1px solid var(--hairline); padding: 1.5rem 0; }
.landing .price-block.pro { background: transparent; border-color: var(--hairline); }
.landing .price-block .amount { color: var(--ink); }
.download-section { position: relative; padding: clamp(2rem, 6vw, 4.5rem); background: var(--surface); border-radius: 52% 48% 2rem 2rem / 10% 10% 2rem 2rem; text-align: center; }
.download-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 1rem 0 1.8rem; letter-spacing: -.025em; }
.download-section > p:last-child { margin-top: 1rem; font-size: .8rem; color: var(--ink-secondary); }
.landing .site-footer { margin-top: 4rem; }
@media (max-width: 760px) {
  .landing .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 2.5rem; }
  .landing .hero h1 { font-size: clamp(3rem, 9vw, 4.5rem); }
  .hero-preview { max-width: 420px; width: 100%; margin-inline: auto; }
  .landing .steps { grid-template-columns: 1fr; gap: 2rem; }
  .landing #privacy { display: block; }
  .landing .pricing { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 420px) {
  .landing .site-header { gap: .6rem; }
  .landing .wordmark { font-size: 1.7rem; }
  .landing .site-nav { width: 100%; justify-content: space-between; font-size: .85rem; }
  .brand-strip { gap: .4rem; font-size: .8rem; }
  .landing .pill { font-size: .85rem; padding-inline: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .landing .pill { transition: none; }
  .landing .pill:hover { transform: none; }
}
/* Keep the tilted paper shape inside the mobile viewport. */
.hero-preview { overflow: clip; }

/* Original app illustrations; no tilted labels or paper tags. */
.landing .hero .hero-doodle { width: 112px; height: 121px; margin: 1.2rem 0 1rem; transform: none; }
.preview-label { display: block; text-align: center; margin: 0 0 1.25rem; font-size: .85rem; color: var(--ink-secondary); }
.hero-preview { padding-top: .75rem; }
.preview-doodle { position: absolute; width: 44px; height: 44px; color: var(--ink); }
.preview-doodle-one { left: 0; top: 24%; }
.preview-doodle-two { right: 0; bottom: 17%; width: 48px; height: 48px; }
.strip-doodle { flex: none; width: 20px; height: 20px; }
.closing-doodle { display: block; width: 86px; height: 93px; margin: 0 auto 1.5rem; color: var(--ink); }

/* Three concrete benefits, with readable supporting copy. */
.brand-strip { align-items: start; gap: 2rem; padding-block: 1.8rem; }
.benefit { flex: 1; }
.benefit strong { font-size: 1.25rem; line-height: 1.3; display: block; }
.benefit p { margin-top: .45rem; font-family: var(--font-body); font-size: .9rem; line-height: 1.55; color: var(--ink-secondary); }
@media (max-width: 600px) {
  .brand-strip { flex-direction: column; gap: 1.4rem; }
  .benefit strong { font-size: 1.15rem; }
}
