/* :plenty — doneplenty.app
   phone first; the desktop layout starts at 760px. */

@font-face {
  font-family: 'Shantell Sans';
  src: url('/assets/fonts/shantell-sans-variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/assets/fonts/bricolage-grotesque-variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F1E6;
  --card: #FFFCF5;
  --sage: #ECECD8;
  --line: #E2DDCC;
  --ink: #28261E;
  --ink2: #6B6656;
  --olive: #46522C;
  --neon: #D6F53E;

  --hand: 'Shantell Sans', cursive;
  --body: 'Bricolage Grotesque', system-ui, sans-serif;

  --max: 1296px;
  --gutter: 24px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-variation-settings: 'opsz' 16;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
p, li, span, a, figcaption { text-wrap: pretty; }
img { display: block; max-width: 100%; }
figure { margin: 0; }

a { color: var(--olive); }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

.hand {
  font-family: var(--hand);
  font-weight: 500;
  font-variation-settings: 'INFM' 100, 'BNCE' 20;
}
.hand-bounce { font-variation-settings: 'INFM' 100, 'BNCE' 70; }

.muted { color: var(--ink2); }
.nowrap { white-space: nowrap; }

/* show one copy or the other where phone and desktop wording differ */
.wide { display: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* highlighter swipe, copied from the app icon */
.swipe { position: relative; display: inline-block; isolation: isolate; }
.swipe::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.14em;
  right: -0.06em;
  bottom: 0.16em;
  height: 0.36em;
  background: var(--neon);
  border-radius: 0.1em / 0.18em;
  transform: rotate(-3deg);
}

/* pill buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--paper);
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
}
.btn:hover { color: var(--paper); }
.btn-light { background: var(--paper); color: var(--olive); }
.btn-light:hover { color: var(--olive); }

/* ---------- header ---------- */

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--hand);
  font-weight: 500;
  font-variation-settings: 'INFM' 100, 'BNCE' 70;
  font-size: 26px;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--ink); }
.wordmark img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  outline: 1px solid var(--line);
  outline-offset: -1px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 550;
}
.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink2);
  text-decoration: none;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { display: none; }

/* ---------- footer ---------- */

.site-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink2);
}
.site-footer a { color: var(--ink2); }
.site-footer a:hover { color: var(--ink); }

/* ---------- hero (all pages) ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 64px;
}
.hero-text { display: flex; flex-direction: column; gap: inherit; }
.hero h1 { font-size: 52px; line-height: 1.06; }
.hero .kicker { font-size: 14px; color: var(--ink2); }
.hero .lead { font-size: 18px; line-height: 1.5; }
.hero-art img { width: 112px; height: 112px; }

/* home */
.hero-home { gap: 28px; padding-top: 64px; padding-bottom: 112px; }
/* 58px keeps the headline to two lines on 390–402px wide iphones */
.hero-home h1 { font-size: 58px; line-height: 1.04; }
.hero-home .hero-art img { width: 132px; height: 132px; }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.hero-actions .note { font-size: 14px; color: var(--ink2); text-align: center; }

/* support */
.hero-support { gap: 20px; padding-bottom: 56px; }

/* ---------- home: small wins ---------- */

.wins {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 112px;
}
.wins-intro { display: flex; flex-direction: column; gap: 24px; }
.wins-intro img { width: 96px; height: 96px; margin-left: -8px; }
.wins-intro h2 { font-size: 36px; line-height: 1.15; }
.wins-intro p { font-size: 17px; line-height: 1.55; color: var(--ink2); }

.win-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 -12px;
  padding: 0;
  list-style: none;
}
.win {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: 18px;
  background: var(--card);
}
.win-meta { font-size: 13px; color: var(--ink2); }
.win-text { font-size: 17px; line-height: 1.35; }
.win:nth-child(4) { display: none; }

/* ---------- home: how it works ---------- */

.how {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 112px;
}
.how > h2 { margin: 0 12px; font-size: 36px; line-height: 1.15; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 22px;
  border-radius: 18px;
  background: var(--card);
}
.step img { width: 72px; height: 72px; }
.step h3 { font-size: 32px; line-height: 1.15; }
.step p { font-size: 16px; line-height: 1.55; color: var(--ink2); }

/* ---------- home: app screens ---------- */

.screens {
  max-width: 1392px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 112px;
}
.screens-panel {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 0 32px;
  border-radius: 18px;
  background: var(--sage);
}
.screens-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px;
}
.screens-head h2 { font-size: 36px; line-height: 1.15; }
.screens-sub { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.screens-sub p {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink2);
}
.arrows { flex: none; display: flex; gap: 8px; }
.arrows button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--card);
  color: var(--olive);
  cursor: pointer;
}
.arrows button:focus-visible { border-radius: 999px; }

.screens-row { position: relative; }
.screens-row::before,
.screens-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.screens-row::before { left: 0; width: 28px; background: linear-gradient(to right, var(--sage) 20%, rgba(236, 236, 216, 0)); }
.screens-row::after { right: 0; width: 40px; background: linear-gradient(to left, var(--sage) 20%, rgba(236, 236, 216, 0)); }

.scroller {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0 22px;
  list-style: none;
  overflow-x: auto;
  scroll-padding-left: 22px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller > li { flex: 0 0 210px; scroll-snap-align: start; }
.scroller figure { display: flex; flex-direction: column; gap: 12px; }
.scroller img {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  border-radius: 28px;
}
.scroller figcaption { font-size: 14px; color: var(--ink2); text-align: center; }

/* ---------- home: invite ---------- */

.invite { padding-left: 12px; padding-right: 12px; padding-bottom: 96px; }
.invite-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 44px 22px 36px;
  border-radius: 18px;
  background: var(--olive);
}
.invite-icon img { width: 96px; height: 96px; border-radius: 21px; }
.invite-text { display: flex; flex-direction: column; gap: 22px; }
.invite h2 {
  font-size: 44px;
  line-height: 1.08;
  color: var(--neon);
}
.invite p { font-size: 17px; line-height: 1.55; color: var(--paper); }
.invite-actions { display: flex; flex-direction: column; gap: 22px; margin-top: 6px; }
.invite-actions .email { font-size: 14px; color: var(--sage); text-align: center; }

/* ---------- privacy ---------- */

.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 -12px;
  padding: 0 0 88px;
  list-style: none;
}
.promise {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 18px;
  background: var(--card);
}
.promise h2 { font-size: 26px; line-height: 1.15; }
.promise p { font-size: 14px; line-height: 1.45; color: var(--ink2); }

.policy { display: flex; flex-direction: column; padding-bottom: 88px; }
.policy-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.6;
}
.policy-item:last-child { padding-bottom: 0; }
.policy-item h2 { font-size: 32px; line-height: 1.2; }
.policy-body { display: flex; flex-direction: column; gap: 14px; }

/* ---------- support ---------- */

.help { padding-bottom: 88px; }
.faq details { padding: 24px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  font-size: 18px;
  font-weight: 550;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { text-wrap: wrap; }
.faq summary svg { flex: none; width: 18px; height: 18px; }
.faq details[open] summary .plus-bar { display: none; }
.answer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 72px -12px 0;
  padding: 32px 22px;
  border-radius: 18px;
  background: var(--card);
}
.contact img { width: 80px; height: 80px; }
.contact h2 { font-size: 32px; line-height: 1.15; }
.contact p { font-size: 16px; line-height: 1.55; color: var(--ink2); }
.contact .btn { margin-top: 6px; padding: 0 16px; }

/* ---------- 404 ---------- */

.lost { padding-bottom: 112px; }
.lost .btn { align-self: flex-start; }

/* small phones (iphone se and narrower) */
@media (max-width: 359.98px) {
  .site-header-inner { gap: 12px; }
  .wordmark { gap: 8px; font-size: 23px; }
  .wordmark img { width: 32px; height: 32px; border-radius: 7px; }
  .site-nav { gap: 14px; font-size: 14px; }
}

/* =========================================================
   desktop, from 760px
   ========================================================= */

@media (min-width: 760px) {
  :root { --gutter: 48px; --header-h: 112px; }

  .wide { display: inline; }
  .narrow { display: none; }

  .btn { display: inline-flex; }

  /* header */
  .site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); }
  .site-header-inner { gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .wordmark { gap: 14px; font-size: 30px; }
  .wordmark img { width: 44px; height: 44px; border-radius: 10px; }
  .site-nav { gap: 36px; font-size: 16px; }
  .site-nav .btn { display: inline-flex; height: 48px; padding: 0 24px; }

  /* footer */
  .site-footer > div { flex-wrap: nowrap; gap: 10px; padding: 40px 0 64px; font-size: 15px; }

  /* heroes: text on the left, doodle on the right */
  .hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
    padding-top: 112px;
    padding-bottom: 96px;
  }
  .hero-text { grid-column: 1 / span 9; grid-row: 1; gap: 32px; }
  .hero-art { grid-column: 10 / span 3; grid-row: 1; display: flex; justify-content: flex-end; }
  .hero-art img { width: clamp(140px, 13.9vw, 200px); height: auto; aspect-ratio: 1; }
  .hero h1 { font-size: clamp(52px, 6.67vw, 96px); line-height: 1.04; }
  .hero .kicker { font-size: 16px; }
  .hero .lead { max-width: 620px; font-size: 22px; }

  .hero-home { padding-top: 136px; padding-bottom: 184px; }
  .hero-home .hero-text { grid-column: 1 / span 8; gap: 40px; }
  .hero-home .hero-art { grid-column: 9 / span 4; padding-bottom: 8px; }
  .hero-home .hero-art img { width: clamp(160px, 18.06vw, 260px); height: auto; }
  .hero-home h1 { font-size: clamp(64px, 9.2vw, 132px); line-height: 1.02; letter-spacing: -0.01em; }
  .hero-home .lead { max-width: 600px; }
  .hero-actions { align-items: flex-start; gap: 16px; padding-top: 0; }
  .hero-actions .btn { height: 56px; font-size: 17px; }
  .hero-actions .note { font-size: 16px; text-align: left; }

  .hero-support { display: flex; align-items: stretch; gap: 28px; }
  .hero-support .hero-text { gap: 28px; }
  .hero-support .lead { max-width: 600px; }

  /* small wins */
  .wins {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
    padding-bottom: 200px;
  }
  .wins-intro { grid-column: 1 / span 6; gap: 28px; }
  .wins-intro img { width: 128px; height: 128px; margin-left: -12px; }
  .wins-intro h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.12; }
  .wins-intro p { max-width: 460px; font-size: 20px; }
  .win-list { grid-column: 8 / span 5; margin: 0; padding-top: 12px; }
  .win { gap: 8px; padding: 28px 32px; border-radius: 24px; }
  .win:nth-child(4) { display: flex; }
  .win:nth-child(even) { margin-left: 40px; }
  .win-meta { font-size: 14px; }
  .win-text { font-size: 20px; }

  /* how it works */
  .how { gap: 56px; padding-left: var(--gutter); padding-right: var(--gutter); padding-bottom: 200px; }
  .how > h2 { margin: 0; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.1; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { gap: 20px; padding: clamp(28px, 2.8vw, 40px); border-radius: 28px; }
  .step img { width: 96px; height: 96px; }
  .step h3 { font-size: clamp(28px, 2.4vw, 34px); }
  .step p { font-size: 18px; }

  /* app screens: the panel fills the screen under the sticky header and the
     screenshots grow to its height. arrows appear when they don't all fit. */
  .screens { padding-left: 24px; padding-right: 24px; padding-bottom: 200px; }
  .screens-panel {
    height: clamp(520px, calc(100svh - var(--header-h) - 24px), 1100px);
    gap: 48px;
    padding: 56px 0 48px;
    border-radius: 32px;
  }
  .screens-head { padding: 0 48px; gap: 12px; }
  .screens-head h2 { font-size: clamp(36px, 3.9vw, 56px); line-height: 1.1; }
  .screens-sub p { max-width: 420px; font-size: 18px; }
  .screens-row { flex: 1 1 auto; min-height: 0; container-type: size; }
  .scroller { height: 100%; align-items: flex-start; gap: 20px; padding: 0 48px; scroll-padding-left: 48px; }
  /* screenshot height = row height minus room for a two-line caption */
  .scroller > li { flex: 0 0 calc((100cqh - 60px) * 1206 / 2622); }
  .scroller > li:first-child { margin-left: auto; }
  .scroller > li:last-child { margin-right: auto; }
  .scroller figure { gap: 16px; }
  .scroller figcaption { font-size: 15px; line-height: 1.45; }
  .screens-panel.fits .arrows,
  .screens-panel.fits .screens-row::before,
  .screens-panel.fits .screens-row::after { display: none; }

  /* invite */
  .invite { padding-left: var(--gutter); padding-right: var(--gutter); padding-bottom: 160px; }
  .invite-block {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: center;
    padding: clamp(56px, 6.67vw, 96px);
    border-radius: 32px;
  }
  .invite-text { grid-column: 1 / span 8; grid-row: 1; gap: 28px; }
  .invite-icon { grid-column: 9 / span 4; grid-row: 1; display: flex; justify-content: flex-end; }
  .invite-icon img { width: clamp(140px, 15.3vw, 220px); height: auto; aspect-ratio: 1; border-radius: clamp(31px, 3.403vw, 49px); }
  .invite h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1.05; }
  .invite p { max-width: 560px; font-size: 20px; }
  .invite-actions { align-items: flex-start; gap: 16px; margin-top: 0; padding-top: 8px; }
  .invite-actions .btn { height: 56px; font-size: 17px; }
  .invite-actions .email { font-size: 16px; text-align: left; }

  /* privacy */
  .promises { gap: 14px; margin: 0; padding-bottom: 144px; }
  .promise { gap: 10px; padding: 32px; border-radius: 24px; }
  .promise h2 { font-size: 32px; }
  .promise p { font-size: 16px; line-height: 1.5; }

  .policy { padding-bottom: 144px; }
  .policy-item {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    padding: 48px 0;
    font-size: 18px;
    line-height: 1.65;
  }
  .policy-item:last-child { padding-bottom: 48px; }
  .policy-item h2 { grid-column: 1 / span 4; }
  .policy-body { grid-column: 6 / span 7; gap: 18px; }

  /* support */
  .help {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
    padding-bottom: 160px;
  }
  .faq { grid-column: 1 / span 7; }
  .faq details { padding: 32px 0; }
  .faq summary { gap: 24px; font-size: 22px; }
  .faq summary svg { width: 20px; height: 20px; }
  .answer { gap: 14px; padding-top: 14px; font-size: 18px; line-height: 1.65; }

  .contact { grid-column: 9 / span 4; gap: 20px; margin: 0; padding: clamp(28px, 2.8vw, 40px); border-radius: 28px; }
  .contact img { width: 96px; height: 96px; }
  .contact h2 { font-size: clamp(28px, 2.4vw, 34px); }
  .contact p { font-size: 17px; }
  .contact .btn { display: flex; margin-top: 8px; }

  .lost { padding-bottom: 200px; }
}

/* tablet-ish widths: give the privacy cards and support columns more room */
@media (min-width: 760px) and (max-width: 1099.98px) {
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-column: 1 / span 12; }
  .contact { grid-column: 1 / span 12; margin-top: 72px; }
  .contact .btn { align-self: flex-start; padding: 0 32px; }
  .policy-item h2 { grid-column: 1 / span 4; }
  .policy-body { grid-column: 5 / span 8; }
}

@media (min-width: 1100px) {
  .promises { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .screens-panel { gap: 56px; padding: 72px 0 64px; }
  .screens-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    padding: 0 72px;
  }
  .screens-sub { gap: 24px; }
  .scroller { padding: 0 72px; scroll-padding-left: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroller { scroll-behavior: auto; }
}
