/* feelingsreel.com — the app's palette: ink #1f3a4d, logo cream, member and feeling colors. */
:root {
  --bg: #fffaf3;
  --bg-2: #fff2e0;
  --surface: #ffffff;
  --ink: #1f3a4d;
  --ink-fixed: #1f3a4d;     /* text on light feeling colors, in both themes */
  --muted: #55667a;
  --line: #ecdfcc;
  --accent: #f39a4c;
  --accent-ink: #a8530f;    /* accent used as text: 4.8:1 on --bg */
  --navy: #1f3a4d;
  --cream: #fff4e2;
  --glow: #ffdcae;
  --shadow: 0 1px 2px rgb(31 58 77 / .06), 0 22px 44px -18px rgb(31 58 77 / .28);
  --radius: 28px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1d27;
    --bg-2: #13283a;
    --surface: #182f3f;
    --ink: #edf2f6;
    --muted: #a9b9c6;
    --line: #29425a;
    --accent: #f6b06e;
    --accent-ink: #f6b06e;
    --navy: #0a1620;
    --glow: #1d4260;
    --shadow: 0 22px 44px -18px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 4.6rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3.1rem); line-height: 1.08; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[id] { scroll-margin-top: 88px; }

.wrap { max-width: 1160px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 780px; }
main > section { padding-block: clamp(56px, 7.5vw, 104px); }
.section-head { max-width: 760px; display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker { color: var(--accent-ink); font-weight: 800; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.body-l { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 800; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top-in { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { border-radius: 22.5%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); }   /* the app icon, as on the App Store */
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; white-space: nowrap; }
.nav a:hover { color: var(--accent-ink); }
.top-end { display: flex; align-items: center; gap: 14px; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: .88rem; padding: 6px 12px; border: 1.5px solid var(--line); border-radius: 999px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; rotate: 45deg; translate: 0 -2px; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--ink); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.lang-menu a:hover { background: var(--bg-2); }
.lang-menu a[aria-current] { color: var(--accent-ink); }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; display: block; }
.badge-sm img { height: 40px; }
@media (max-width: 1060px) { .nav { display: none; } .top-end { margin-left: auto; } }
@media (max-width: 440px) { .badge-sm { display: none; } }

/* ---------- feeling tiles (the app's drawings) ---------- */
.tile { margin: 0; display: grid; gap: 8px; justify-items: center; }
.tile-art { width: 100%; aspect-ratio: 1; border-radius: 26%; background: var(--tile-bg); display: grid; place-items: center; box-shadow: 0 12px 26px -14px rgb(31 58 77 / .45); }
.tile-art svg { width: 88%; height: 88%; }
.tile figcaption { font-weight: 800; font-size: .95rem; line-height: 1.2; text-align: center; }
.mini .tile-art { box-shadow: none; }

/* ---------- phone frame ---------- */
.phone { width: min(300px, 74vw); border-radius: 48px; padding: 9px; background: #0d1a24; box-shadow: var(--shadow), inset 0 0 0 1.5px rgb(255 255 255 / .1); }
.phone img { display: block; width: 100%; height: auto; border-radius: 40px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 84px) clamp(56px, 8vw, 104px); overflow-x: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-text { display: grid; gap: 22px; }
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.32rem); color: var(--muted); max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.note { color: var(--muted); font-size: .98rem; max-width: 27ch; line-height: 1.45; }
.hero-visual { position: relative; display: grid; place-items: center; padding: 28px 0; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; z-index: -1; width: min(560px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 46%, var(--glow), transparent 66%); }
.hero .phone { width: min(318px, 66vw); }
.float { position: absolute; width: clamp(78px, 10.5vw, 126px); animation: fr-float 6s ease-in-out infinite; }
.float.f1 { top: 6%; left: 0; rotate: -9deg; }
.float.f2 { top: 16%; right: -2%; rotate: 8deg; animation-delay: -1.5s; }
.float.f3 { bottom: 20%; left: -3%; rotate: 6deg; animation-delay: -3s; }
.float.f4 { bottom: 12%; right: -4%; rotate: -7deg; animation-delay: -4.5s; }
@keyframes fr-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 8px; }
  .float.f1 { left: 2%; } .float.f2 { right: 2%; } .float.f3 { left: 0; } .float.f4 { right: 0; }
}

/* ---------- the reel: a film strip of all 24 friends ---------- */
.reel { background: var(--navy); padding-block: 40px; position: relative; overflow: hidden; }
.reel::before, .reel::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: radial-gradient(closest-side, var(--bg) 92%, transparent) 0 0 / 28px 12px repeat-x; opacity: .9; }
.reel::before { top: 10px; } .reel::after { bottom: 10px; }
.reel-track { display: flex; width: max-content; animation: fr-reel 90s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel-run { display: flex; gap: 20px; padding-right: 20px; }
.reel-tile { width: 118px; }
.reel-tile figcaption { color: var(--cream); font-size: .9rem; }
@keyframes fr-reel { to { transform: translateX(-50%); } }

/* ---------- why ---------- */
.why-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.why-top > div { display: grid; gap: 18px; }
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow); }
.quote blockquote { margin: 0; }
.quote::before { content: "“"; display: block; height: 44px; font-size: 5.2rem; line-height: .9; color: var(--accent); font-weight: 800; }
.quote p { font-size: 1.14rem; line-height: 1.6; }
.quote figcaption { margin-top: 16px; font-weight: 800; color: var(--muted); }
.points { list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.points li { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.point-art { width: 64px; }
.point-art.fam { aspect-ratio: 1; box-shadow: none; }
.points p { color: var(--muted); }
@media (max-width: 860px) { .why-top { grid-template-columns: 1fr; } .points { grid-template-columns: 1fr; } }

/* ---------- how ---------- */
.how { background: var(--bg-2); }
.how h2 { margin: 12px 0 clamp(32px, 5vw, 56px); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 34px); }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .phone { width: 100%; max-width: 260px; margin-bottom: 14px; border-radius: 40px; padding: 7px; }
.steps .phone img { border-radius: 34px; }
.step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; }
.steps li > p:last-child { color: var(--muted); }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .steps { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px;
    margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px))); padding-inline: max(20px, env(safe-area-inset-left, 0px)); scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
  .steps li { scroll-snap-align: start; }
}

/* ---------- levels ---------- */
.level-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.level-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; max-width: 280px; }
.level-name { font-weight: 800; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.level-name span { color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 700; }
.level h3 { font-size: 1.25rem; }
.level > p:last-child { color: var(--muted); }
.wheel-chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; align-content: center; gap: 8px; aspect-ratio: 1; max-width: 280px; }
.wheel-chips li { background: var(--chip); color: var(--chip-fg); font-weight: 800; padding: 9px 13px; border-radius: 14px; font-size: .95rem; }
@media (max-width: 1020px) { .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .level-grid { grid-template-columns: 1fr; } .wheel-chips { aspect-ratio: auto; } }

/* ---------- week, family ---------- */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.split > div { display: grid; gap: 18px; }
.split > .phone { justify-self: center; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231f3a4d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.family { background: var(--bg-2); }
.feature-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 22px; }
.feature-list li { display: grid; gap: 4px; }
.feature-list p { color: var(--muted); }
.fam-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); width: 100%; max-width: 420px; justify-self: center; padding-bottom: 24px; }
.fam { aspect-ratio: 1; border-radius: 50%; background: var(--fam); display: grid; place-items: center; box-shadow: var(--shadow); }
.fam svg { width: 78%; height: 78%; }
.fam:nth-child(even) { translate: 0 24px; }
@media (max-width: 860px) {
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .fam-grid { order: -1; max-width: 300px; }
}

/* ---------- languages ---------- */
.happy-words { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.happy-words li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 1.05rem; }
.happy-words li:nth-child(7n+1) { background: #f8cd55; color: var(--ink-fixed); border-color: transparent; }
.happy-words li:nth-child(7n+4) { background: #86c98a; color: var(--ink-fixed); border-color: transparent; }

/* ---------- privacy ---------- */
.privacy-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.privacy-grid li { border-top: 3px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.privacy-grid p { color: var(--muted); }
.more { margin-top: 36px; font-weight: 800; }
@media (max-width: 920px) { .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.pricing { background: var(--bg-2); }
.pricing .section-head { margin-inline: auto; text-align: center; justify-items: center; }
.pricing .body-l { margin-inline: auto; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 22px; }
.plan { position: relative; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: grid; gap: 12px; align-content: start; }
.plan.best { border-color: var(--ink); }
.flag { position: absolute; top: -15px; left: 24px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .85rem; padding: 4px 13px; border-radius: 999px; }
.price { font-size: 2.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.fine { margin: 26px auto 0; color: var(--muted); font-size: .95rem; max-width: 72ch; text-align: center; }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 420px); } }

/* ---------- faq ---------- */
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font-weight: 800; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 1.7rem; font-weight: 700; color: var(--accent-ink); transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 66ch; }

/* ---------- closing call ---------- */
.cta-box { background: var(--navy); color: var(--cream); border-radius: 40px; padding: clamp(40px, 6vw, 84px) clamp(24px, 5vw, 72px); display: grid; justify-items: center; text-align: center; gap: 18px; }
.cta-box h2 { color: #fff; max-width: 18ch; }
.cta-box p { color: #d6e1ea; font-size: 1.15rem; }
.cta-art { display: flex; gap: 14px; margin-bottom: 6px; }
.cta-art .tile { width: 74px; }
.cta-art .tile:nth-child(2) { translate: 0 -12px; }
.cta-box .badge { margin-top: 8px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 48px; }
.foot-brand { display: grid; gap: 10px; }
.foot-brand p { color: var(--muted); max-width: 38ch; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; justify-content: flex-end; }
.foot-nav a { font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-langs a { color: var(--muted); font-weight: 700; text-decoration: none; }
.foot-langs a:hover { color: var(--ink); }
.foot-langs a[aria-current] { color: var(--ink); }
.foot-contact { grid-column: 1 / -1; color: var(--muted); }
.mail { color: var(--ink); font-weight: 800; -webkit-user-select: all; user-select: all; }
.foot-legal { grid-column: 1 / -1; color: var(--muted); font-size: .8rem; max-width: 92ch; }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } .foot-nav { justify-content: flex-start; } }

/* ---------- support and privacy pages ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.doc h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.3rem); margin-bottom: 14px; }
.doc h2 { font-size: 1.35rem; margin: 2em 0 .5em; }
.doc p, .doc li { max-width: 68ch; }
.doc p { margin: 0 0 1em; }
.doc ul { padding-left: 1.2em; }
.doc .muted { color: var(--muted); font-size: .95rem; }

@media (prefers-reduced-motion: reduce) {
  .float, .reel-track { animation: none !important; }
  .reel { overflow-x: auto; }
  .reel-run[aria-hidden] { display: none; }
}
