/* Reflory website. One stylesheet for every page. Colours and type follow the app. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #F7F5F0;
  --forest: #163F36;
  --forest-deep: #0F2E27;
  --teal: #4F7770;
  --teal-ink: #3B6159;
  --sage: #C7D4CC;
  --sage-soft: #E3EAE3;
  --neutral: #EDEBE4;
  --outline: #DAD6CC;
  --card: #FCFBF8;
  --text2: #4F6159;
  --text3: #6E7C75;
  --amber: #E5A94B;
  --amber-soft: #F4E3C0;
  --amber-ink: #5E4719;
  --coral: #DC806B;
  --coral-soft: #F6DCD4;
  --coral-ink: #6E3A2C;
  --bluegray: #7D929A;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 24px 60px -24px rgba(22, 63, 54, .28);
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--forest);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 0; color: var(--forest); }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0 0 1em; }
h2 + .lead { margin-top: 14px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--forest); color: var(--ivory); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }
.kicker { font-size: .95rem; font-weight: 700; color: var(--teal); margin: 0 0 12px; letter-spacing: .01em; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--text2); max-width: 36em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text3); font-size: .92rem; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--forest); font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--forest); text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .lang { border: 1px solid var(--outline); border-radius: 999px; padding: 3px 11px; font-size: .85rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: var(--ivory) !important;
  text-decoration: none !important; font-weight: 700; font-size: .9rem; padding: 9px 18px; border-radius: 999px;
}
.pill:hover { background: var(--forest-deep); }
.pill svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 760px) { .site-nav .hide-s { display: none; } .site-nav { gap: 14px; } }

.lang-hint { background: var(--forest); color: var(--ivory); font-size: .92rem; text-align: center; padding: 9px 16px; }
.lang-hint a { color: #fff; font-weight: 700; }
.lang-hint[hidden] { display: none; }

/* ---------- store button ---------- */
.store {
  display: inline-flex; align-items: center; gap: 11px; background: #000; color: #fff; text-decoration: none;
  border-radius: 13px; padding: 9px 20px 9px 15px; min-height: 54px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}
.store:hover { background: #1d1d1f; color: #fff; }
.store svg { width: 25px; height: 25px; fill: #fff; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.store strong { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 28px; }
.cta-note { font-size: .9rem; color: var(--text3); margin: 14px 0 0; }
.text-link { font-weight: 700; color: var(--forest); text-decoration: none; border-bottom: 2px solid var(--sage); padding-bottom: 1px; }
.text-link:hover { border-color: var(--teal); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 12px 0 56px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40px -10% auto auto; width: 620px; height: 620px; max-width: 120vw;
  background: radial-gradient(closest-side, rgba(199, 212, 204, .75), rgba(199, 212, 204, 0));
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; padding-top: 24px; } }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 20px; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual .phone { width: min(320px, 76vw); filter: drop-shadow(0 34px 44px rgba(22, 63, 54, .24)); }
.hero-mascot { position: absolute; left: calc(50% - 250px); bottom: -14px; width: 104px; filter: drop-shadow(0 10px 18px rgba(22, 63, 54, .18)); }
@media (max-width: 520px) { .hero-mascot { left: calc(50% - 196px); width: 74px; bottom: -22px; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-mascot { animation: bob 4.5s ease-in-out infinite alternate; }
  @keyframes bob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-8px) rotate(2deg); } }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-tight { padding: clamp(40px, 6vw, 64px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 + .lead { margin-top: 16px; }
.band { background: var(--neutral); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-m); padding: 26px 24px; position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step); font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ivory);
  background: var(--teal); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
}
.steps h3 { font-family: var(--sans); font-weight: 800; font-size: 1.08rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--text2); font-size: .98rem; }

/* feature split */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.split .media { display: flex; justify-content: center; position: relative; }
.split .media::before { content: ""; position: absolute; width: 380px; height: 380px; max-width: 90vw; border-radius: 50%; background: var(--sage-soft); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.split .media img { position: relative; width: min(300px, 72vw); filter: drop-shadow(0 28px 40px rgba(22, 63, 54, .2)); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%234F7770' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* reflection stack: the app's own card colours */
.rstack { display: grid; gap: 12px; max-width: 560px; }
.rcard { border-radius: var(--radius-m); padding: 18px 22px; box-shadow: 0 12px 30px -22px rgba(22, 63, 54, .45); }
.rcard h3 { font-family: var(--sans); font-weight: 800; font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rcard p { margin: 6px 0 0; font-size: .97rem; line-height: 1.55; }
.rcard .tag { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: rgba(255, 255, 255, .55); color: #3D5047; }
.rc-what { background: var(--bluegray); color: #FBFAF7; }
.rc-what h3 { color: #fff; } .rc-what p { color: rgba(251, 250, 247, .94); }
.rc-maybe { background: var(--sage-soft); }
.rc-maybe p { color: #3D5047; }
.rc-well { background: var(--teal); }
.rc-well h3 { color: #fff; } .rc-well p { color: rgba(244, 246, 242, .94); }
.rc-now { background: var(--amber-soft); }
.rc-now h3 { color: var(--amber-ink); } .rc-now p { color: #5F4A1F; }
.rc-next { background: var(--coral-soft); }
.rc-next h3 { color: var(--coral-ink); } .rc-next p { color: #6A3E31; }
.rc-say { background: var(--forest); }
.rc-say h3 { color: #EFECE2; }
.rc-say blockquote { margin: 8px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.18rem; line-height: 1.45; color: #F4F2EA; }
.reflect-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .reflect-grid { grid-template-columns: 1fr 320px; gap: 64px; align-items: center; } }
.reflect-grid .phone { width: min(300px, 72vw); margin: 0 auto; filter: drop-shadow(0 28px 40px rgba(22, 63, 54, .2)); }

/* style chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li, .chips a { display: inline-block; border: 1px solid var(--outline); background: var(--card); border-radius: 999px; padding: 7px 15px; font-weight: 600; font-size: .94rem; color: var(--forest); text-decoration: none; }
.chips a:hover { border-color: var(--teal); background: #fff; }
.chips li:has(> a) { border: 0; padding: 0; background: none; }

/* trust band */
.trust { background: var(--forest); color: var(--ivory); }
.trust h2, .trust h3 { color: #F4F2EA; }
.trust .lead { color: rgba(247, 245, 240, .78); }
.trust-grid { display: grid; gap: 0 48px; margin-top: 8px; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
.trust-item { border-top: 1px solid rgba(247, 245, 240, .18); padding: 20px 0; }
.trust-item h3 { font-family: var(--sans); font-weight: 800; font-size: 1.03rem; margin-bottom: 4px; }
.trust-item p { margin: 0; color: rgba(247, 245, 240, .76); font-size: .96rem; }
.honest { margin-top: 36px; display: flex; gap: 20px; align-items: flex-start; background: rgba(247, 245, 240, .07); border-left: 3px solid var(--amber); border-radius: 16px; padding: 22px 24px; }
.honest img { width: 64px; flex: none; }
.honest p { margin: 0; color: rgba(247, 245, 240, .84); font-size: .97rem; }
.honest p + p { margin-top: 10px; }
.honest a { color: #fff; }
@media (max-width: 560px) { .honest { flex-direction: column; } }

/* pricing */
.plans { display: grid; gap: 16px; max-width: 760px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-m); padding: 24px; }
.plan.best { border: 2px solid var(--teal); }
.plan h3 { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; }
.plan .price { font-family: var(--serif); font-size: 2rem; font-weight: 600; margin: 8px 0 2px; }
.plan p { margin: 0; color: var(--text2); font-size: .95rem; }

/* guide list on home pages and hub */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--outline); }
.guide-list li { border-bottom: 1px solid var(--outline); }
.guide-list a { display: grid; gap: 4px; padding: 20px 4px; text-decoration: none; color: var(--forest); }
@media (min-width: 760px) { .guide-list a { grid-template-columns: minmax(240px, 1fr) 1.4fr; gap: 24px; align-items: baseline; } }
.guide-list strong { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; }
.guide-list span { color: var(--text2); font-size: .97rem; }
.guide-list a:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.narrow .guide-list a { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
.prose .guide-list { padding-left: 0; margin: 0; }
.prose .guide-list li { margin: 0; }
.prose .guide-list span { color: var(--text2); }

/* faq */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--outline); }
.faq details:first-of-type { border-top: 1px solid var(--outline); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 1.5rem; font-weight: 400; color: var(--teal); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; color: var(--text2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* maker */
.maker { display: grid; gap: 20px; align-items: center; max-width: 760px; }
@media (min-width: 640px) { .maker { grid-template-columns: 120px 1fr; gap: 32px; } }
.maker img { width: 110px; }
.maker p { color: var(--text2); margin: 10px 0 0; }

/* final cta */
.final { text-align: center; }
.final .mascot { width: 112px; margin: 0 auto 22px; }
.final h2 { max-width: 16em; margin: 0 auto; }
.final .cta-row { justify-content: center; }

/* ---------- article (guides) ---------- */
.crumbs { font-size: .9rem; color: var(--text3); margin: 8px 0 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--text3); }
.crumbs a { color: var(--text2); }
.article-head { padding: 4px 0 8px; }
.article-head h1 { font-size: clamp(2rem, 4.8vw, 3rem); max-width: 16em; }
.article-head .lead { margin-top: 18px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: .9rem; color: var(--text3); }
.byline img { width: 40px; height: 40px; border-radius: 10px; }
.byline strong { color: var(--forest); font-weight: 700; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin: 52px 0 16px; scroll-margin-top: 20px; }
.prose h3 { margin: 30px 0 10px; }
.prose p, .prose li { color: #2B4A42; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); font-weight: 700; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sage); font-family: var(--serif); font-size: 1.15rem; color: var(--forest); }
.summary { background: var(--sage-soft); border-radius: var(--radius-m); padding: 22px 24px; margin: 30px 0 8px; }
.summary h2 { font-family: var(--sans); font-size: 1.05rem !important; font-weight: 800; margin: 0 0 10px !important; letter-spacing: 0; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin-bottom: .35em; }
.toc { margin: 26px 0 0; font-size: .95rem; }
.toc h2 { font-family: var(--sans); font-size: .98rem !important; font-weight: 800; margin: 0 0 6px !important; letter-spacing: 0; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 32px; }
.toc a { color: var(--teal-ink); }

/* numbered steps inside articles: coloured like the app's reflection cards */
.moves { list-style: none; padding: 0 !important; margin: 18px 0 24px !important; display: grid; gap: 12px; counter-reset: move; }
.moves > li { counter-increment: move; border-radius: var(--radius-m); padding: 18px 20px 16px 64px; position: relative; background: var(--card); border: 1px solid var(--outline); margin: 0 !important; }
.moves > li::before { content: counter(move); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; background: var(--teal); color: #fff; }
.moves > li strong:first-child { display: block; font-size: 1.04rem; color: var(--forest); margin-bottom: 2px; }
.moves > li p { margin: 0; }

.phase { border-radius: var(--radius-m); padding: 20px 22px; margin: 18px 0; }
.phase h3 { font-family: var(--sans); font-weight: 800; font-size: 1.04rem; margin: 0 0 8px; }
.phase p:last-child, .phase ul:last-child { margin-bottom: 0; }
.phase.now { background: var(--amber-soft); }
.phase.now h3 { color: var(--amber-ink); }
.phase.next { background: var(--coral-soft); }
.phase.next h3 { color: var(--coral-ink); }
.phase.maybe { background: var(--sage-soft); }
.phase.say { background: var(--forest); }
.phase.say h3 { color: #EFECE2; }
.phase.say p, .phase.say li { color: #F4F2EA; }
.phase.say blockquote { border-left-color: var(--amber); color: #F4F2EA; margin: .6em 0; }

.table-wrap { overflow-x: auto; margin: 18px 0 26px; border: 1px solid var(--outline); border-radius: var(--radius-s); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--outline); }
th { background: var(--neutral); font-weight: 800; color: var(--forest); }
tr:last-child td { border-bottom: 0; }
td { color: #2B4A42; }
td em { font-style: normal; font-weight: 600; color: var(--forest); }

.help { border: 2px solid var(--amber); background: #FFF9EE; border-radius: var(--radius-m); padding: 22px 24px; margin: 44px 0 10px; }
.help h2 { margin-top: 0 !important; font-size: 1.4rem !important; }
.help ul { margin-bottom: .8em; }
.help .note { font-size: .93rem; color: var(--text2); margin: 0; }

.app-box { background: var(--forest); color: var(--ivory); border-radius: var(--radius-l); padding: 28px 26px 0; margin: 48px 0 12px; display: grid; gap: 18px; overflow: hidden; }
@media (min-width: 720px) { .app-box { grid-template-columns: 1fr 220px; padding: 34px 34px 0; gap: 28px; } }
.app-box h2 { color: #F4F2EA; margin: 0 0 10px !important; font-size: 1.6rem !important; }
.app-box p, .app-box li { color: rgba(247, 245, 240, .84) !important; }
.app-box .store { margin-bottom: 30px; background: #fff; color: #000; }
.app-box .store svg { fill: #000; }
.app-box .store:hover { background: #F2F2F2; color: #000; }
.app-box img { width: 220px; align-self: end; margin: 0 auto -40px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
@media (min-width: 720px) { .app-box img { margin-bottom: -60px; } }

.sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--outline); font-size: .93rem; }
.sources h2 { font-size: 1.2rem !important; margin: 0 0 10px !important; }
.sources li { color: var(--text2); }
.disclaimer { font-size: .92rem; color: var(--text2); background: var(--neutral); border-radius: var(--radius-s); padding: 14px 16px; margin: 28px 0 0; }
.related { margin-top: 44px; }
.related h2 { font-size: 1.35rem !important; margin: 0 0 12px !important; }

/* ---------- support / legal shell ---------- */
.page { padding: 8px 0 72px; }
.page h1 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 14px; }
.page h2 { font-size: clamp(1.35rem, 2.6vw, 1.7rem); margin: 40px 0 14px; }
.contact-card { background: var(--card); border: 1px solid var(--outline); border-radius: var(--radius-m); padding: 20px 22px; margin: 22px 0; }
.contact-card p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--neutral); border-top: 1px solid var(--outline); padding: 48px 0 40px; font-size: .94rem; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--sans); font-size: .98rem; font-weight: 800; margin: 0 0 10px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--text2); text-decoration: none; }
.site-footer a:hover { color: var(--forest); text-decoration: underline; }
.site-footer .small { color: var(--text3); font-size: .86rem; margin: 12px 0 0; max-width: 34em; }
.foot-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--outline); color: var(--text3); font-size: .86rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- motion: one gentle reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
