:root {
  color-scheme: light;
  --paper: #f6f2e8;
  --surface: #fffdf7;
  --ink: #152e38;
  --muted: #475b58;
  --jade: #165044;
  --line: #d8dbce;
  --mint: #e2ebe2;
  --deep: #102a33;
  --gold: #f1cc89;
  --cream: #fff7e5;
  --hero-muted: #d0dfd9;
  --serif: Georgia, 'Times New Roman', serif;
  font: 100%/1.55 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #817226; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; inset: .5rem auto auto .5rem; padding: .75rem; background: var(--surface); transform: translateY(-150%); }
.skip:focus { transform: none; }

.site-header { background: var(--surface); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; line-height: 1.1; text-decoration: none; }
.brand img { border-radius: 26%; }
.brand small { display: block; margin-bottom: .17rem; color: var(--muted); font-size: .75rem; letter-spacing: .045em; }
.brand strong { font-family: var(--serif); font-size: 1.25rem; }
nav { display: flex; align-items: center; gap: 1.8rem; }
nav > a { font-size: .9rem; font-weight: 650; text-decoration: none; }
nav > a:not(.button):hover { text-decoration: underline; text-underline-offset: .25em; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .7rem 1.12rem; min-height: 2.75rem; border: 1px solid transparent; border-radius: .55rem; text-align: center; text-decoration: none; font-size: .925rem; font-weight: 750; }
.button-outline { color: var(--jade); border-color: #a6b7a9; }
.button-outline:hover { background: var(--mint); }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #ffe1a3; }
.text-link { font-weight: 700; text-underline-offset: .28em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { position: relative; isolation: isolate; background: var(--deep); color: var(--cream); }
.hero::before { position: absolute; z-index: -1; inset: 0; content: ''; background: linear-gradient(90deg, var(--deep) 13%, transparent 65%), url('assets/fern-engraving.jpg') right center / auto 124% no-repeat; }
.hero-inner { min-height: 39rem; display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 2.5rem; padding-block: 3.9rem 3.2rem; }
.hero-copy { max-width: 34rem; }
.eyebrow { margin-bottom: .8rem; font-size: .875rem; line-height: 1.35; font-weight: 740; letter-spacing: .14em; text-transform: uppercase; color: var(--jade); }
.hero .eyebrow, .availability .eyebrow, .reward-card .eyebrow { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3.65rem, 6.4vw, 6.25rem); line-height: .99; letter-spacing: -.055em; }
h1 em { color: var(--gold); font-weight: inherit; }
.hero-description { max-width: 32rem; margin-top: 1.38rem; color: var(--hero-muted); font-size: 1.125rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.4rem; margin-top: 1.6rem; }
.hero-actions .text-link { font-size: .925rem; }

.showcase { justify-self: center; text-align: center; }
.device { width: min(17.75rem, 100%); padding: .43rem; background: #0b242d; border: 1px solid #6b7e77; border-radius: 2rem; box-shadow: 0 1.35rem 2.8rem #04161aa6; text-align: start; }
.device-screen { padding: .7rem .77rem .53rem; overflow: hidden; background: #f4f0e7; color: var(--ink); border-radius: 1.56rem; }
.device-status, .device-title, .device-section, .device-nav { display: flex; align-items: center; justify-content: space-between; }
.device-status { font-size: .65rem; font-weight: 760; padding-inline: .3rem; }
.device-title { gap: .35rem; margin: .68rem 0 .55rem; font: 400 1.29rem/1.2 var(--serif); }
.avatar { display: grid; flex: none; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #e6e1ef; color: #514571; font-size: .95rem; }
.device-level { padding: .76rem .8rem; border-radius: .72rem; background: var(--deep) url('assets/fern-engraving.jpg') right center / auto 190% no-repeat; color: var(--cream); }
.device-level > span, .device-level > small { display: block; font-size: .65rem; }
.device-level > span { color: var(--gold); letter-spacing: .12em; font-weight: 750; }
.device-level > strong { display: block; font: 1.14rem/1.25 var(--serif); margin: .22rem 0 .42rem; }
.meter { width: 72%; height: .26rem; overflow: hidden; margin-bottom: .3rem; border-radius: .2rem; background: #56717a; }
.meter i { display: block; width: 67%; height: 100%; background: var(--gold); }
.device-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; margin-block: .54rem .65rem; text-align: center; font-size: .61rem; color: var(--muted); }
.device-days b { display: block; margin-top: .09rem; padding: .2rem .08rem; border-radius: .31rem; background: var(--surface); color: var(--ink); }
.device-days .selected-day { color: var(--surface); background: var(--jade); }
.device-section { gap: .3rem; margin-bottom: .37rem; }
.device-section strong { font: 1.03rem/1.2 var(--serif); }
.device-section > span { color: var(--jade); font-size: .63rem; font-weight: 700; }
.device-habit { display: grid; grid-template-columns: 1.62rem 1fr 1.12rem; align-items: center; gap: .42rem; padding: .41rem; margin-bottom: .26rem; border-radius: .46rem; border: 1px solid #e4e3d9; background: var(--surface); }
.device-habit i { display: grid; place-items: center; width: 1.62rem; height: 1.62rem; background: #e8eee5; border-radius: .35rem; font-style: normal; font-size: .83rem; }
.device-habit strong, .device-habit small { display: block; }
.device-habit strong { font-size: .67rem; }
.device-habit small { font-size: .6rem; color: var(--muted); }
.device-habit b { display: grid; place-items: center; width: 1.08rem; height: 1.08rem; border-radius: .28rem; font-size: .64rem; }
.device-habit .done { background: var(--jade); color: var(--surface); }
.device-habit .pending { border: 1px solid #7f918a; }
.device-nav { margin-top: .55rem; font-size: .58rem; font-weight: 650; color: var(--muted); }
.device-nav span:first-child { color: var(--jade); text-decoration: underline; text-underline-offset: .18rem; }
figcaption { margin-top: .7rem; font-size: .8rem; color: var(--hero-muted); }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem 1.2rem; padding: 1.16rem max(1.5rem, (100% - 72rem) / 2); margin: 0; list-style: none; text-align: center; color: var(--jade); background: var(--mint); font-weight: 700; font-size: .9rem; }
.benefits li { display: flex; gap: .45rem; align-items: center; justify-content: center; }
.benefits li::before { content: '✓' / ''; font-size: .85em; }
.section { padding-block: 5rem; }
.section-intro { max-width: 39rem; }
h2 { font-size: clamp(2.3rem, 4.3vw, 4rem); line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
h3 { font-size: 1.62rem; line-height: 1.12; letter-spacing: -.025em; }
.section-intro > p:not(.eyebrow), .feature p, .privacy-details p, dd, .faq-list p { color: var(--muted); }
.section-intro > p:not(.eyebrow) { margin-top: .9rem; font-size: 1.08rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.25rem; }
.feature { padding: 1.45rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--surface); }
.feature-icon { display: grid; place-items: center; width: 2.55rem; height: 2.55rem; margin-bottom: 1.12rem; border-radius: .63rem; background: var(--mint); color: var(--jade); font-size: 1.15rem; font-weight: 700; }
.feature p, .privacy-details p { margin-top: .6rem; }
.screenshots-section { background: var(--mint); border-top: 1px solid var(--line); }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; margin-top: 2rem; }
.screenshot-card { padding: 1rem; border: 1px solid #b9cabb; border-radius: .9rem; background: var(--surface); text-align: center; }
.screenshot-card a { display: block; width: fit-content; max-width: 100%; margin-inline: auto; border-radius: .55rem; }
.screenshot-card img { width: auto; height: auto; max-height: 30rem; aspect-ratio: 430 / 932; object-fit: contain; border: 1px solid var(--line); border-radius: inherit; background: var(--paper); }
.screenshot-card figcaption { margin-top: .7rem; color: var(--ink); font-size: 1rem; font-weight: 700; }
.screenshot-card a:hover + figcaption { text-decoration: underline; text-underline-offset: .2em; }
.progress-section, .faq-section { background: var(--surface); border-block: 1px solid var(--line); }
.progress-layout, .privacy-layout, .faq-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.progress-layout { align-items: center; }
.progress-details { display: grid; gap: 1.15rem; margin-top: 1.45rem; }
dt { font-weight: 760; }
dd { margin-top: .2rem; }
.reward-card { padding: 1.6rem; border-radius: .9rem; color: var(--cream); background: var(--deep); }
.reward-item { display: grid; grid-template-columns: 2.15rem 1fr auto; align-items: center; gap: .7rem; padding-block: .9rem; border-top: 1px solid #435e61; }
.reward-item:last-child { padding-bottom: 0; }
.reward-icon { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; color: var(--gold); background: #30484b; }
.reward-item strong, .reward-item small { display: block; }
.reward-item small { color: var(--hero-muted); font-size: .85rem; }
.reward-item b { color: var(--gold); font-size: .88rem; white-space: nowrap; }
.privacy-layout .text-link { display: inline-block; color: var(--jade); margin-top: 1.1rem; }
.privacy-details { display: grid; gap: 1.25rem; }
.privacy-details article { border-top: 1px solid #9cab9d; padding-top: .85rem; }
.faq-layout { grid-template-columns: .75fr 1.25fr; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .95rem 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+' / ''; flex: none; color: var(--jade); font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: '−' / ''; }
.faq-list p { padding-bottom: 1rem; max-width: 48ch; }
.availability { background: var(--deep); color: var(--cream); text-align: center; }
.availability-inner { max-width: 41rem; }
.availability p:not(.eyebrow) { max-width: 34rem; margin: .9rem auto 1.35rem; color: var(--hero-muted); }
.site-footer { background: var(--surface); }
.footer-inner { padding-block: 1.65rem; }
.footer-inner nav { gap: .6rem 1.3rem; flex-wrap: wrap; }
.legal { max-width: 44rem; min-height: 65vh; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
.legal p:not(.eyebrow) { margin-top: 1.2rem; max-width: 63ch; }

@media (max-width: 55rem) {
  .hero-inner { gap: 1.1rem; min-height: 0; }
  .progress-layout, .privacy-layout, .faq-layout { gap: 2rem; }
  .feature { padding: 1.2rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 4rem; }
  .header-inner .brand img { width: 2.2rem; height: 2.2rem; }
  .nav-detail { display: none; }
  .hero::before { background: linear-gradient(180deg, var(--deep) 21%, #102a3352 52%, transparent 100%), url('assets/fern-engraving.jpg') right bottom / auto 80% no-repeat; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2rem 1.45rem; }
  .hero-copy { max-width: 27rem; }
  h1 { font-size: clamp(3.35rem, 12.4vw, 4.8rem); }
  .hero-description { margin-top: .85rem; font-size: 1rem; }
  .hero-actions { margin-top: 1.1rem; gap: .6rem 1.1rem; }
  .device { width: min(16.75rem, 100%); }
  .benefits { grid-template-columns: repeat(2, 1fr); padding: .85rem 1rem; gap: .35rem .7rem; }
  .section { padding-block: 3rem; }
  .feature-grid, .progress-layout, .privacy-layout, .faq-layout { grid-template-columns: 1fr; gap: 1rem; }
  .feature-grid { margin-top: 1.35rem; }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.35rem; }
  .screenshot-card { padding: .45rem; }
  .screenshot-card figcaption { margin-block: .5rem .2rem; font-size: .875rem; }
  .progress-layout, .privacy-layout, .faq-layout { gap: 1.65rem; }
  .feature-icon { margin-bottom: .82rem; }
  .reward-card { padding: 1.15rem; }
  .footer-inner { align-items: start; flex-direction: column; }
}
