/* Sejoli landing. Direction from the user's reference: airy near-white page with soft tiles, big headlines
   whose second half turns pink, a fan of tilted cards, glossy hearts, and a flower field to end on.
   Sejoli's own parts: the app's pink, real screens in the fan, and Mochi. */
:root {
  --bg: #fffafb;
  --panel: #fbf1f3;
  --card: #fff;
  --ink: #2b1f25;
  --muted: #6b5862;        /* 6:1 on --bg */
  --pink: #d4266a;         /* 4.8:1 on --bg, white text on it passes */
  --blush: #f6a9c1;
  --blush-soft: #ffe6ee;
  --line: #f0dde3;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 1.0325rem/1.7 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.028em; text-wrap: balance; }
h1 span, h2 span, h3 span { color: var(--pink); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.12; }
h3 { font-size: 1.5rem; line-height: 1.35; }
p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.center { position: relative; text-align: center; }
/* Mochi plays once and rests (no endless motion on the public page); a tap still makes it hop */
.mascot * { animation-iteration-count: 1 !important; }

.tag { display: inline-block; padding: 4px 18px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; font-size: .86rem; }
.doodle { position: absolute; width: 34px; height: 34px; pointer-events: none; }
span.doodle { width: auto; height: auto; pointer-events: auto; }
.curl { width: 86px; height: 44px; color: var(--pink); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 1.5px solid var(--pink); border-radius: 14px; background: var(--pink); color: #fff; font-weight: 700; font-size: .98rem; text-decoration: none; transition: transform .12s, background .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .9rem; border-radius: 12px; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-line { background: var(--card); color: var(--pink); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 30px; }

/* ── nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; transition: background .2s, box-shadow .2s; }
.nav.is-solid, .nav.menu-open { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.nav-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; letter-spacing: -.03em; font-size: 1.45rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:active { color: var(--ink); border-bottom-color: var(--pink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--pink); font-weight: 700; text-decoration: none; }
.nav-toggle { display: none; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--card); font-weight: 700; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 128px 0 80px; text-align: center; }
/* soft tiles from the reference, fading out downward */
.tiles { position: absolute; inset: 0 0 25% 0; opacity: .9;
  background-image: conic-gradient(from 90deg at 3px 3px, transparent 90deg, #fbeef2 0), conic-gradient(from 90deg at 3px 3px, transparent 90deg, #fff 0);
  background-size: 192px 192px, 64px 64px; background-position: 0 0, 32px 0;
  -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
.hero-copy { position: relative; }
.hero h1 { max-width: 14ch; margin: 22px auto 0; font-size: clamp(2.6rem, 6.6vw, 5.4rem); line-height: 1.04; letter-spacing: -.035em; }
.hero h1 span { display: block; }
.lead { max-width: 60ch; margin: 18px auto 0; color: var(--muted); }
.h1 { left: 12%; top: 40%; width: 30px; height: 30px; transform: rotate(-14deg); }
.h2 { right: 10%; top: 66%; width: 46px; height: 46px; transform: rotate(14deg); }
.h3 { right: 15%; top: 80%; width: 28px; height: 28px; transform: rotate(-8deg); }
.peek { right: 7%; top: 18%; transform: rotate(8deg); }
.fan { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: clamp(12px, 2vw, 30px); margin-top: 56px; }
.fan li { flex: none; width: clamp(180px, 17vw, 244px); padding: 9px 9px 6px; border-radius: 26px; background: var(--card); box-shadow: 0 22px 44px -22px rgba(95, 30, 60, .42); }
.fan img { width: 100%; height: auto; aspect-ratio: 390 / 560; object-fit: cover; object-position: top; border-radius: 19px; border: 1px solid var(--line); }
.fan span { display: block; padding-top: 6px; font-weight: 700; font-size: .92rem; }
.fan .c1 { transform: translateY(58px) rotate(-11deg); }
.fan .c2 { transform: translateY(18px) rotate(-5deg); }
.fan .c3 { transform: translateY(-6px); }
.fan .c4 { transform: translateY(18px) rotate(5deg); }
.fan .c5 { transform: translateY(58px) rotate(11deg); }

/* ── three paths ── */
.paths { padding: 90px 0 110px; background: var(--card); }
.paths-head { position: relative; display: flex; justify-content: flex-end; text-align: right; }
.paths-head p { max-width: 52ch; margin: 8px 0 0 auto; color: var(--muted); }
.h4 { left: 6%; bottom: -6px; width: 52px; height: 52px; transform: rotate(-16deg); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.card { padding: 30px 30px 34px; border: 1px solid var(--line); border-radius: 32px; background: var(--bg); }
.card-main { background: var(--blush-soft); border-color: var(--blush); }
.card h3 { margin-top: 16px; font-size: 1.75rem; }
.card > p { margin-top: 6px; color: var(--muted); }
.card ul { display: grid; gap: 10px; margin-top: 22px; }
.card li { position: relative; padding-left: 28px; font-size: .95rem; }
.card li::before { content: ''; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; background: var(--pink); -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat; }
.card { --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-4.9-9.6-10C1.3 7.4 3.8 4 7.2 4c2.1 0 3.8 1.2 4.8 3 1-1.8 2.7-3 4.8-3 3.4 0 5.9 3.4 4.8 7C20 16.1 12 21 12 21Z'/%3E%3C/svg%3E"); }

/* ── features with real screens ── */
.feature { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 520px); justify-content: center; align-items: center; gap: clamp(36px, 8vw, 120px); padding: 84px 20px; background: var(--bg); }
.feature.flip { grid-template-columns: minmax(0, 520px) minmax(0, 320px); background: var(--panel); }
.feature.flip .shot { order: 2; }
.feature .shot { position: static; }
.tilt-l { transform: rotate(-4deg); }
.tilt-r { transform: rotate(4deg); }
.feature-copy > p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 32px; font-weight: 700; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; background: var(--pink); -webkit-mask: var(--heart) center / contain no-repeat; mask: var(--heart) center / contain no-repeat; }
.ticks, .card { --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-4.9-9.6-10C1.3 7.4 3.8 4 7.2 4c2.1 0 3.8 1.2 4.8 3 1-1.8 2.7-3 4.8-3 3.4 0 5.9 3.4 4.8 7C20 16.1 12 21 12 21Z'/%3E%3C/svg%3E"); }

/* ── the rest, as a plain list ── */
.more { width: min(1180px, 100% - 40px); margin: 0 auto; padding: 96px 0; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.more dl { margin: 0; }
.more dl > div { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1.5px solid var(--line); }
.more dl > div:first-child { padding-top: 6px; }
.more dt { font-weight: 800; font-size: 1.14rem; }
.more dd { margin: 0; color: var(--muted); }

/* ── mood try-out ── */
.mood { padding: 100px 0; background: var(--blush-soft); }
.mood-grid-wrap { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 400px); justify-content: space-between; gap: 48px; align-items: center; }
.mood-copy h2 { margin-top: 14px; }
.mood-copy h2 span { display: block; }
.mood-copy > p:last-of-type { max-width: 54ch; margin-top: 14px; color: var(--muted); }
.moods, .reasons { margin-top: 28px; }
legend { padding: 0; margin-bottom: 12px; font-weight: 800; }
.mood-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mood-pick { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); cursor: pointer; transition: transform .12s, border-color .12s; }
.mood-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mood-pick span { font-size: .82rem; font-weight: 700; text-align: center; }
.mood-pick:hover { transform: translateY(-2px); }
.mood-pick:active { transform: scale(.95); }
.mood-pick:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink); }
.mood-pick:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.reason-list { display: flex; flex-wrap: wrap; gap: 10px; }
.reason { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; font-size: .9rem; }
.reason:active { transform: scale(.95); }
.reason[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.mood-preview { text-align: center; }
.preview-cap { margin-bottom: 12px; font-weight: 800; font-size: 1.15rem; }
.preview-card { display: grid; justify-items: center; align-content: start; gap: 2px; min-height: 380px; padding: 28px 22px; border-radius: 34px; background: var(--card); box-shadow: 0 30px 60px -30px rgba(95, 30, 60, .45); transform: rotate(3deg); }
.preview-who { margin-top: 10px; color: var(--muted); }
.preview-mood { font-weight: 800; letter-spacing: -.03em; font-size: 2.3rem; line-height: 1.25; color: var(--pink); }
.preview-why { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.preview-why li { padding: 4px 14px; border-radius: 999px; background: var(--blush-soft); font-weight: 700; font-size: .88rem; }
.preview-note { margin-top: 26px; font-size: .9rem; color: var(--muted); }

/* ── steps with a collage ── */
.start { padding: 100px 0 110px; background: var(--panel); }
.center p { color: var(--muted); }
.h5 { right: 8%; top: -8px; width: 56px; height: 56px; transform: rotate(14deg); }
.h6 { right: 5%; top: 56px; transform: rotate(-12deg); }
.start-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 600px); justify-content: space-between; gap: 56px; align-items: center; margin-top: 56px; }
.collage { position: relative; min-height: 470px; }
.shot { position: absolute; overflow: hidden; border: 6px solid var(--card); border-radius: 30px; box-shadow: 0 22px 44px -22px rgba(95, 30, 60, .42); }
.shot.big { right: 14px; top: 0; width: 56%; transform: rotate(4deg); }
.shot img { width: 100%; height: auto; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }
.map { position: absolute; left: 0; bottom: 14px; width: 66%; border: 6px solid var(--card); border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: 0 22px 44px -22px rgba(95, 30, 60, .5); transform: rotate(-5deg); }
.map > svg { width: 100%; height: auto; }
.map-thread { fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 10; }
.pin { position: absolute; }
.pin svg { width: clamp(44px, 5vw, 62px); height: auto; }
.pin-a { left: 8%; top: 18%; }
.pin-b { right: 8%; top: 38%; }
.collage > .curl { position: absolute; left: 4%; top: 10%; transform: rotate(18deg); }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 34px; }
.steps h3 { padding-bottom: 14px; border-bottom: 1.5px solid var(--line); font-family: var(--font); font-weight: 700; font-size: 1.15rem; }
.steps p { margin-top: 14px; color: var(--muted); font-size: .96rem; }

/* ── data ── */
.data { padding: 100px 0; background: var(--card); }
.data-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.data h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.data h2 span { display: block; }
.data-grid p { max-width: 52ch; margin-top: 16px; color: var(--muted); }
.data-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.box { padding: 26px; border-radius: 28px; background: var(--blush-soft); }
.box-alt { margin-top: 48px; background: var(--bg); border: 1.5px dashed var(--blush); }
.box h3 { font-size: 1.3rem; }
.box li { padding: 11px 0; border-bottom: 1px solid rgba(43, 31, 37, .12); font-size: .94rem; }
.box li:last-child { border: 0; padding-bottom: 0; }

/* ── faq ── */
.faq { padding: 100px 0; background: var(--bg); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 48px; align-items: start; }
.faq h2 { margin-top: 14px; }
.faq h2 span { display: block; }
.faq-grid .curl { margin: 8px 0 0 130px; }
.faq-list { display: grid; gap: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.faq details[open] { background: var(--panel); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; padding: 14px 22px; font-weight: 700; line-height: 1.45; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 1.25rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); }
.faq details p { max-width: 66ch; padding: 0 22px 20px; color: var(--muted); font-size: .96rem; }

/* ── closing banner ── */
.closing { padding: 80px 0 40px; background: var(--panel); }
.banner { position: relative; overflow: hidden; padding: 78px 24px; border-radius: 36px; text-align: center;
  /* the silk fold from the reference, drawn with two soft washes */
  background: radial-gradient(120% 90% at 10% 0%, #fff0f5 0 28%, transparent 55%), radial-gradient(100% 120% at 85% 110%, #f39ab9 0 20%, transparent 62%), linear-gradient(125deg, #fbd0dd, #f9bccf 45%, #fcdbe5); }
.banner h2 { max-width: 18ch; margin: 0 auto; }
.banner p { margin-top: 12px; }
.banner .btn-line { border-color: transparent; color: var(--ink); }
.b1 { left: 7%; top: 18%; width: 40px; height: 40px; transform: rotate(-18deg); }
.b2 { right: 9%; bottom: 14%; width: 34px; height: 34px; transform: rotate(16deg); }

/* ── bottom bar ── */
.bar { border-top: 1px solid var(--line); background: var(--card); padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.bar .brand { font-size: 1.2rem; }
.bar .brand img { width: 30px; height: 30px; border-radius: 9px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bar nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 6px; }

/* ── text pages (privacy) ── */
.doc-head { border-bottom: 1px solid var(--line); background: var(--card); }
.doc-head .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.doc { width: min(760px, 100% - 40px); margin: 0 auto; padding: 56px 0 80px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); line-height: 1.1; }
.doc-date { margin: 8px 0 24px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.doc h2 { margin: 40px 0 12px; font-size: 1.35rem; line-height: 1.3; }
.doc p { margin-top: 12px; }
.doc ul { display: grid; gap: 8px; margin-top: 12px; padding-left: 1.2em; list-style: disc; }
.doc a { color: var(--pink); font-weight: 700; overflow-wrap: anywhere; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--blush-soft); font-size: .9em; }

/* ── tablet ── */
@media (max-width: 1080px) {
  .nav-ready .nav-toggle { display: inline-flex; align-items: center; }
  .nav-ready .nav-links { display: none; }
  .nav-ready.menu-open .nav-links { display: grid; gap: 0; position: absolute; left: 0; right: 0; top: 100%; padding: 8px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 20px 40px -18px rgba(95, 30, 60, .35); }
  .nav-links a { min-height: 50px; }
  .peek { display: none; }
  .mood-grid-wrap, .start-grid, .data-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .mood-grid-wrap, .start-grid { justify-content: center; }
  .mood-copy, .mood-preview { max-width: 620px; width: 100%; margin: 0 auto; }
  .collage { width: min(480px, 100%); margin: 0 auto; }
}
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: minmax(0, 520px); justify-items: center; gap: 36px; }
  .feature.flip .shot { order: 0; }
  .feature .shot { width: min(290px, 80%); }
  .more { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
  /* the fan becomes a swipeable strip */
  .fan { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px calc(50% - 105px) 30px; margin-top: 34px; }
  .fan li { width: 210px; scroll-snap-align: center; }
  .fan .c1, .fan .c2, .fan .c3, .fan .c4, .fan .c5 { transform: none; }
  .fan .c3 { order: -1; }
  .paths-head { justify-content: flex-start; text-align: left; }
  .paths-head p { margin-left: 0; }
  .h4 { display: none; }
}
/* ── phone ── */
@media (max-width: 600px) {
  .feature, .more { padding-block: 64px; }
  .bar .wrap { justify-content: center; text-align: center; }
  .bar nav { order: 3; justify-content: center; }
  .more dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  html { scroll-padding-top: 76px; }
  .nav-inner { padding-block: 10px; gap: 10px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { display: none; }
  .hero { padding: 100px 0 40px; }
  .hero .cta .btn, .banner .cta .btn { width: 100%; }
  .h1, .h3, .h5, .h6, .b2 { display: none; }
  .h2 { right: 2%; top: -6px; width: 32px; height: 32px; }
  .paths, .mood, .start, .data, .faq { padding-block: 68px; }
  .mood-grid { gap: 8px; }
  .mood-pick span { font-size: .72rem; }
  .preview-card { transform: none; }
  .collage { min-height: 380px; }
  .steps, .data-boxes { grid-template-columns: minmax(0, 1fr); }
  .box-alt { margin-top: 0; }
  .faq-grid .curl { display: none; }
  .banner { padding: 52px 18px; }
  .b1 { left: 14px; top: 12px; width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
