/* YipYappy site: bright and character-led, matching beyondthegrove.com.
   Fredoka is self-hosted from /fonts (SIL OFL), so fonts make no third-party requests. */
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/fredoka-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/fredoka-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: light;
  --paper: #FFF8FB;          /* page */
  --white: #FFFFFF;
  --wash: #FBEFF6;           /* alternate section */
  --ink: #1C1624;
  --muted: #5B5166;
  --faint: #6B6175; /* 4.5:1+ on every light background */
  --line: #EEDFE8;
  --pink: #FD5590;           /* YipYappy pink */
  --pink-deep: #C2185B; /* 4.5:1+ as text on every light background and tint; matches the app */      /* text-safe pink */
  --grape: #6A4CFF;
  --sun: #FFC83D;
  --mint: #3FC9A8;
  --tint-pink: #FFE1EC;       /* icon tiles */
  --tint-grape: #E8E2FF;
  --tint-sun: #FFF2CC;
  --tint-mint: #DDF6EE;
  --glow-pink: #FFC2DA;       /* soft hero glows */
  --glow-grape: #D9D0FF;
  --night: #17121C;           /* phone frame */
  --night-2: #2A2131;
  --on-ink: #E9DFEA;          /* text on the dark footer and band */
  --on-ink-soft: #CFC3D3;
  --on-ink-muted: #B9ADBF;
  --on-ink-faint: #A99DAF;
  --pink-light: #FF8DB8;
  --display: "Fredoka", "SF Pro Rounded", ui-rounded, "Nunito", "Varela Round", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-lg: 28px; --r-md: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .12);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: clip; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--pink-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(46px, 7.4vw, 88px); font-weight: 700; }
h2 { font-size: clamp(34px, 4.8vw, 54px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; }
.eyebrow { display: inline-flex; align-items: center; font: 600 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--pink-deep); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--grape); margin-right: 38px; }
section { padding-block: clamp(72px, 10vw, 120px); }
.wash { background: var(--wash); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 17px/1 var(--display); text-decoration: none; border: 2px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.btn-pink { background: var(--pink-deep); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, .2); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 600 14px/1.2 var(--display); color: var(--muted); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.chip i.grape { background: var(--grape); }
.tint-pink { background: var(--tint-pink); } .tint-grape { background: var(--tint-grape); } .tint-sun { background: var(--tint-sun); } .tint-mint { background: var(--tint-mint); }

/* Header */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 251, .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.nav .logo { margin-right: auto; }
.nav .logo img { height: 44px; width: auto; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); text-decoration: none; font: 600 16px/1 var(--display); padding-block: 14px; }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
@media (max-width: 880px) { .nav nav .opt { display: none; } .nav .btn { display: none; } }
@media (max-width: 420px) { .nav { gap: 16px; } .nav nav { gap: 16px; } .nav .logo img { height: 36px; } }

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.hero::before { width: 520px; height: 520px; background: var(--glow-pink); right: -120px; top: -120px; }
.hero::after { width: 420px; height: 420px; background: var(--glow-grape); left: -160px; bottom: -140px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero h1 .pop { color: var(--pink-deep); display: inline-block; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Talking phone */
.stage { position: relative; justify-self: center; width: min(300px, 70vw); }
.phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px; background: var(--night); box-shadow: var(--shadow), inset 0 0 0 2px #3B3342; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--night-2); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 999px; background: var(--night); z-index: 2; }
.play-toggle { position: absolute; z-index: 2; left: 50%; bottom: 24px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(23, 18, 28, .62); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .18s; }
.play-toggle:hover { background: rgba(23, 18, 28, .82); }
.play-toggle:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; }
.play-toggle svg { width: 20px; height: 20px; fill: currentColor; }
.play-toggle .i-play, .play-toggle.paused .i-pause { display: none; }
.play-toggle.paused .i-play { display: block; }
.play-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mail-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.cta-band .mail-note { flex-basis: 100%; margin-top: -4px; font: 400 15px/1.5 var(--body); color: var(--on-ink-soft); max-width: none; }
.cta-band .mail-note a { color: #fff; }
.bubble { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); font: 600 16px/1.2 var(--display); color: var(--ink); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); bottom: -6px; }
.b1 { left: -24%; top: 15%; } .b1::after { right: 26px; }
.b2 { right: -20%; top: 47%; background: var(--sun); } .b2::after { left: 26px; }
.b3 { left: -16%; bottom: 12%; background: var(--pink-deep); color: #fff; } .b3::after { right: 30px; }
.sticker { position: absolute; z-index: 3; width: 30%; right: -12%; top: -6%; transform: rotate(9deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.mark { position: absolute; z-index: 3; width: 17%; right: -9%; bottom: -3%; transform: rotate(10deg); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .2)); }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bob 4.8s var(--ease) infinite; }
  .b2 { animation-delay: -1.6s; } .b3 { animation-delay: -3.2s; }
  .sticker { animation: wiggle 6s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes wiggle { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
}
@media (max-width: 520px) { .b1 { left: -8%; } .b2 { right: -8%; } .b3 { left: -6%; } .sticker { right: -6%; } .mark { right: -4%; } }

/* Four ways strip */
.ways { position: relative; z-index: 1; list-style: none; padding: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.way { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); font: 600 17px/1.2 var(--display); box-shadow: var(--shadow-sm); }
.way span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.way small { display: block; font: 400 14px/1.3 var(--body); color: var(--muted); }
@media (max-width: 980px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .way { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 16px; } }
@media (max-width: 340px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Section head */
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { margin-top: 14px; }
.head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

/* Screenshot cards */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shots.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.shot { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease); }
.shot:hover { transform: translateY(-4px) rotate(-.4deg); }
.shot img { border-radius: 18px; aspect-ratio: 478 / 1036; object-fit: cover; object-position: top; width: 100%; background: var(--night); }
.shot .tag { font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); padding-inline: 6px; margin-top: 4px; }
.shot h3 { padding-inline: 6px; margin-top: -4px; }
.shot p { font-size: 15px; color: var(--muted); padding-inline: 6px; }
@media (max-width: 980px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .shots.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots.three .shot:last-child { display: none; } }
@media (max-width: 400px) { .shots { gap: 12px; } .shot { padding: 8px 8px 16px; } .shot h3 { font-size: 18px; } .shot p { font-size: 14px; } }

/* Draw feature */
.draw { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.draw-media { position: relative; justify-self: center; width: min(340px, 78vw); }
.draw-media img { border-radius: 36px; box-shadow: var(--shadow); border: 10px solid var(--night); }
.draw-media .tag { position: absolute; right: -10%; bottom: 14%; background: var(--sun); font: 700 17px/1.1 var(--display); padding: 12px 16px; border-radius: 16px; transform: rotate(5deg); box-shadow: var(--shadow-sm); }
.draw h2 { margin-top: 14px; }
.draw .lead { margin-top: 18px; }
.ticks { margin: 24px 0 0; display: grid; gap: 12px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks strong { color: var(--ink); }
/* The same layout with the picture on the right. */
@media (min-width: 881px) { .draw.flip { grid-template-columns: 1.1fr .9fr; } .draw.flip .draw-media { order: 2; } .draw.flip .draw-media .tag { right: auto; left: -10%; transform: rotate(-5deg); background: var(--pink-deep); color: #fff; } }
@media (max-width: 880px) { .draw { grid-template-columns: minmax(0, 1fr); } .draw-media { order: -1; } .draw-media .tag { right: -4%; } }

/* Only in YipYappy: the six things other talking-character apps don't do */
.only { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; }
.only::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: var(--pink); filter: blur(120px); opacity: .22; right: -220px; top: -260px; pointer-events: none; }
.only .wrap { position: relative; }
.only-head { max-width: 780px; }
.only-head h2 { color: #fff; }
.only-head p { margin-top: 18px; font-size: 19px; color: var(--on-ink-soft); max-width: 56ch; }
.only-list { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 88px); }
.only-list li { padding: 28px 0 30px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 10px; align-content: start; }
.only-list h3 { color: #fff; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.1; }
.only-list h3 em { font-style: normal; color: var(--pink-light); }
.only-list p { color: var(--on-ink-soft); max-width: 52ch; }
.only-list .cue { font: 600 .92em/1 var(--display); color: var(--ink); background: var(--sun); padding: 3px 8px 4px; border-radius: 8px; white-space: nowrap; }
.only-list .usually { font-size: 15px; color: var(--on-ink-muted); }
.only-list .usually b { font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-faint); margin-right: 8px; }
.only-foot { margin-top: clamp(28px, 4vw, 40px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); color: var(--on-ink-soft); font: 600 clamp(18px, 2vw, 21px)/1.35 var(--display); }
.only a { color: var(--pink-light); text-underline-offset: 4px; }
.only a:focus-visible { outline-color: var(--sun); }
@media (max-width: 760px) { .only-list { grid-template-columns: minmax(0, 1fr); } .only-list li { padding: 22px 0 24px; } }

/* Features, in four groups */
.fgroups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); }
.fgroup { padding: 0; --accent: var(--pink); }
.fgroup.grape { --accent: var(--grape); }
.fgroup.sun { --accent: var(--sun); }
.fgroup.mint { --accent: var(--mint); }
.fgroup h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.fgroup h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); flex: none; }
.fgroup ul { list-style: none; margin: 0; padding: 0; }
.fgroup li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.fgroup h4 { margin: 0; font: 600 18px/1.25 var(--display); color: var(--ink); }
.fgroup p { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 60ch; }
@media (max-width: 760px) { .fgroups { grid-template-columns: minmax(0, 1fr); } }

/* Privacy promises */
#privacy .cta-band { margin-top: clamp(56px, 7vw, 88px); }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
/* Icon beside the heading, the words under both. */
.promise { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; }
.promise .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; }
.promise p { grid-column: 1 / -1; margin-top: 14px; color: var(--muted); }
.more { margin-top: 28px; text-align: center; color: var(--muted); }
@media (max-width: 880px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* Closing call to action */
.cta-band { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; justify-content: space-between; padding: clamp(26px, 4vw, 40px); border-radius: 36px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--pink); filter: blur(80px); opacity: .35; right: -80px; top: -140px; }
.cta-band > * { position: relative; }
.cta-band .say { display: flex; align-items: center; gap: 18px; }
.cta-band .say img { width: 64px; flex: none; }
.cta-band p { font: 600 clamp(20px, 2.4vw, 26px)/1.25 var(--display); max-width: 30ch; }
.cta-band p em { font-style: normal; color: var(--pink-light); }
.cta-band .btn-pink, .cta-band .btn-pink:hover { box-shadow: none; }
.cta-band .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-line:hover { border-color: #fff; }

/* Footer */
footer { background: var(--ink); color: var(--on-ink); padding-block: 56px 34px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.foot .logo img { height: 40px; width: auto; }
.foot .tagline { margin-top: 14px; color: var(--on-ink-muted); font-size: 15px; max-width: 30ch; }
.foot h4 { margin: 0 0 12px; font: 600 15px/1 var(--display); color: #fff; }
.foot a { display: block; color: var(--on-ink-soft); text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot address { color: var(--on-ink-muted); font-style: normal; font-size: 15px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--on-ink-faint); }
.legal a { color: var(--on-ink-soft); }
@media (max-width: 880px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* Reveal: content is visible by default; it only animates when JS and motion allow */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .shot { transition: none; }
  .btn-pink:hover, .btn-line:hover, .shot:hover { transform: none; }
}

/* Support and legal pages */
.page-hero { position: relative; padding-block: clamp(40px, 6vw, 72px) 8px; }
.page-hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: var(--glow-pink); filter: blur(70px); opacity: .5; right: -140px; top: -180px; z-index: 0; }
.page-hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--glow-grape); filter: blur(70px); opacity: .45; left: -140px; top: 40px; z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-top: 16px; }
.page-hero .updated { color: var(--faint); margin-top: 12px; font-size: 15px; }
.doc { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 24px 20px clamp(64px, 8vw, 100px); }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p { margin: 0 0 12px; color: var(--muted); }
.doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 0 0 12px; }
.doc li::marker { color: var(--pink-deep); }
.doc .box { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 12px; box-shadow: var(--shadow-sm); }
.doc .box.contact { background: linear-gradient(150deg, #FFE3EE, #EFE7FF); border-color: #F6CFE0; }

/* Help guides (support/<feature>) */
.doc .crumbs { margin: 0 0 4px; font-weight: 600; }
.doc .crumbs a, .doc .related a { color: var(--pink-deep); text-decoration: none; }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.guide.no-shot { grid-template-columns: minmax(0, 1fr); }
.guide h2 { margin-top: 20px; }
.guide-shot { margin: 20px 0 0; }
.guide-shot img { display: block; width: 100%; height: auto; border-radius: 30px; box-shadow: var(--shadow); background: #000; }
.doc ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 12px; display: grid; gap: 14px; }
.doc ol.steps li { counter-increment: step; position: relative; padding-left: 46px; color: var(--ink); font-size: 17px; line-height: 1.5; min-height: 32px; }
.doc ol.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--pink-deep); color: #fff; font: 700 15px/32px var(--display); text-align: center; }
.doc .related { display: flex; flex-wrap: wrap; gap: 10px; }
.doc .related a { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.guide-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.guide-card:hover, .guide-card:focus-visible { transform: translateY(-2px); border-color: var(--pink); }
.guide-card strong { color: var(--ink); font: 600 17px/1.25 var(--display); }
.guide-card span { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .guide-shot { max-width: 260px; margin: 12px auto 0; }
}
@media (max-width: 520px) { .guides { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .guide-card { transition: none; } .guide-card:hover { transform: none; } }

/* Education page: managed configuration keys */
.doc table.keys { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: block; overflow-x: auto; }
.doc table.keys th, .doc table.keys td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc table.keys th { color: var(--muted); font-weight: 600; background: var(--wash); }
.doc table.keys tr:last-child td { border-bottom: 0; }
.doc table.keys code { font-size: 14px; color: var(--pink-deep); white-space: nowrap; }

/* Education: demo video, pathways, iPad screenshots */
.page-hero .btn-row { margin-top: 22px; }
.edu-video { margin: 8px 0 6px; }
.edu-video video { width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; background: var(--wash); box-shadow: var(--shadow); }
.edu-video figcaption { color: var(--faint); font-size: 14px; margin-top: 10px; }
.doc details { margin: 0 0 12px; color: var(--muted); }
.doc details summary { cursor: pointer; font-weight: 600; color: var(--pink-deep); }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.paths .guide-card { padding: 20px; }
.paths .guide-card em { font-style: normal; color: var(--pink-deep); font-weight: 600; font-size: 14px; margin-top: 6px; }
@media (max-width: 720px) { .paths { grid-template-columns: minmax(0, 1fr); } }
.doc .shots.ipad { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 4px 0 8px; }
.doc .shots.ipad img { aspect-ratio: 640 / 921; }
.doc .shots.ipad .shot p { margin: 0; }
.doc .wide-shot { margin: 8px 0 14px; }
.doc .wide-shot img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.doc pre { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 6px 0 18px; }
@media (max-width: 560px) { .doc .shots.ipad { grid-template-columns: minmax(0, 1fr); } }
