/* Refruit: sunset sky, an orange tree, warm cream pages. Plum ink, orange accent. */
:root {
  --ink: #3A1F3D;
  --muted: #6E5468;
  --accent: #FF8A1F;
  --accent-deep: #C9600B;
  --accent-ink: #B4500A;
  --cream: #FFF7EF;
  --peach: #FFE9DC;
  --card: #FFFFFF;
  --line: rgba(58, 31, 61, 0.12);
  --leaf: #2A8F60;
  --sky: linear-gradient(180deg, #5A49D6 0%, #8B62DE 34%, #D77BC4 62%, #FF9F8C 84%, #FFC77A 100%);
  --night: linear-gradient(180deg, #0A0F2E 0%, #1A2458 50%, #3B3A86 100%);
  --round: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F7EAF2;
    --muted: #CDB8C8;
    --accent-ink: #FFB066;
    --cream: #1C1220;
    --peach: #251729;
    --card: #2E1F33;
    --line: rgba(247, 234, 242, 0.14);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 18px/1.55 var(--round);
  color: var(--ink);
  background: var(--cream);
}
a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--round); letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 5.4vw, 48px); line-height: 1.1; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 21px; margin: 0 0 6px; font-weight: 700; }
.small { font-size: 14px; color: var(--muted); }

/* Header */
header.site { padding: 18px 0; position: relative; z-index: 2; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav.site { display: flex; align-items: center; gap: 22px; }
nav.site a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap; }
nav.site a:hover { color: var(--ink); }
nav.site a.pill-link { color: #FFFFFF; background: var(--accent); padding: 10px 18px; border-radius: 999px; box-shadow: 0 4px 0 var(--accent-deep); }
body.home header.site { position: absolute; inset-inline: 0; top: 0; }
body.home header.site .brand, body.home nav.site a:not(.pill-link) { color: #FFFFFF; }

/* Hero: the sunset sky with the tree and a flower field */
.hero { position: relative; overflow: hidden; background: var(--sky); color: #FFFFFF; padding: 120px 0 0; }
.sky-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); line-height: 1.02; margin: 0 0 22px; font-weight: 700; letter-spacing: -0.02em; }
.hero h1 span { display: inline-block; }
.pill {
  color: #FFFFFF; padding: 0.02em 0.32em 0.1em; margin-top: 0.08em; border-radius: 999px;
  background: linear-gradient(180deg, #FFC24A 0%, #FF8A1F 100%); box-shadow: 0 0.08em 0 #C9600B;
  transform: rotate(-2deg);
}
.lede { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.45; color: #FFF1FA; max-width: 30em; margin: 0 0 30px; }
.meta { font-size: 15px; color: #FFE6F3; margin: 18px 0 0; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 26px;
  border-radius: 999px; background: #1E1426; color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 18px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35);
}
.store:hover { transform: translateY(-1px); }
.hero-visual { position: relative; justify-self: center; width: min(360px, 78vw); padding-bottom: 40px; z-index: 1; }
.phone { background: #1E1426; padding: 10px; border-radius: 52px; box-shadow: 0 30px 60px -24px rgba(40, 10, 60, 0.55); }
.phone img { display: block; width: 100%; border-radius: 43px; }
.phone.small { width: min(300px, 70vw); justify-self: center; }
.tag {
  position: absolute; z-index: 2; background: #FFFFFF; color: #E8508A; font-weight: 700; font-size: 18px;
  padding: 8px 18px 10px; border-radius: 999px; box-shadow: 0 5px 0 rgba(40, 20, 80, 0.18); white-space: nowrap;
}
.tag-a { inset-inline-start: -44px; top: 22%; transform: rotate(-8deg); }
.tag-b { inset-inline-end: -48px; top: 48%; transform: rotate(7deg); color: #6B4FD8; }
.tag.static { position: static; display: inline-block; margin-top: 8px; color: #3B3A86; transform: rotate(-3deg); }
.hero-tree { position: absolute; width: 46%; inset-inline-end: -26%; bottom: 0; transform: rotate(5deg); }
.field { position: relative; display: block; width: 100%; height: clamp(120px, 16vw, 220px); margin-top: -80px; }

/* Bands */
.band { padding: 84px 0; position: relative; }
.cream { background: var(--cream); }
.peach { background: var(--peach); }
.section-lede { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 28px; }

ol.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
ol.steps li { background: var(--card); border-radius: 28px; padding: 28px; box-shadow: 0 6px 0 var(--line); }
ol.steps p { margin: 0; color: var(--muted); }
.num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%;
  background: linear-gradient(180deg, #FFC24A, #FF8A1F); color: #FFFFFF; font-weight: 800; font-size: 22px;
}

.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 8px 0 18px; }
.moods figure { margin: 0; }
.moods img { display: block; width: 100%; border-radius: 26px; box-shadow: 0 6px 0 var(--line); }
.moods figcaption { margin-top: 10px; font-weight: 700; text-align: center; }
.note { font-weight: 600; color: var(--leaf); margin: 10px 0 0; }

.night { background: var(--night); color: #FFFFFF; overflow: hidden; }
.night .section-lede { color: #DCD8FF; }
.split { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: center; position: relative; }
.split.reverse > :first-child { order: 2; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.card { background: var(--card); border-radius: 28px; padding: 28px; box-shadow: 0 6px 0 var(--line); }
.card p { margin: 0; color: var(--muted); }

#guides { background: var(--peach); padding: 84px 0; }
.guide-list { padding: 0; list-style: none; display: grid; gap: 10px; }
.guide-list a { display: block; background: var(--card); border-radius: 18px; padding: 16px 20px; color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 4px 0 var(--line); }
.guide-list a:hover { color: var(--accent-ink); }

details { background: var(--card); border-radius: 20px; padding: 18px 22px; margin-bottom: 12px; box-shadow: 0 4px 0 var(--line); }
details summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent-ink); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

.closing { background: var(--sky); color: #FFFFFF; text-align: center; overflow: hidden; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing-tree { width: 150px; margin-bottom: 8px; }
.closing p { color: #FFF1FA; font-size: 20px; margin: 0 0 26px; }

/* Legal pages and guides */
.legal { padding-bottom: 20px; }
.legal h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; margin: 28px 0 8px; }
.legal h2 { font-size: 24px; margin-top: 34px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lede-start { font-size: 20px; color: var(--muted); }
.crumbs { font-size: 15px; color: var(--muted); margin-top: 8px; }
.crumbs a { color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guide-card { text-decoration: none; color: var(--ink); display: block; }
.guide-card h3 { color: var(--ink); }
.cta-box { margin: 40px 0 8px; text-align: center; }
.cta-box h2 { margin-top: 0; font-size: 30px; }
.cta-box p { margin-bottom: 20px; }
.cta {
  display: inline-block; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 700;
  padding: 15px 28px; border-radius: 999px; min-height: 48px; box-shadow: 0 5px 0 var(--accent-deep);
}

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 15px; color: var(--muted); background: var(--cream); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site .langs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px 14px; margin-top: 16px; }
footer.site .langs a { text-decoration: none; padding: 4px 0; }
footer.site .langs a[aria-current] { color: var(--ink); font-weight: 700; }

@media (max-width: 860px) {
  .hero { padding-top: 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lede { margin-inline: auto; }
  .hero-tree { width: 40%; inset-inline-end: -20%; }
  ol.steps, .cards { grid-template-columns: 1fr; }
  .moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .split.reverse > :first-child { order: 0; }
  .section-lede { margin-inline: auto; }
  .band, #guides { padding: 64px 0; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(32px, 9.4vw, 56px); }
  nav.site a:not(.keep) { display: none; }
  .tag { font-size: 15px; }
  .tag-a { inset-inline-start: -18px; }
  .tag-b { inset-inline-end: -18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
