/* Leafday landing page. Tokens, type and the bar are in site.css. */


/* ---- grounds ------------------------------------------------------------------------------------ */

.tone-paper { background: var(--paper); }
.tone-page { background: var(--page); }
.tone-sunk { background: var(--sunk); }
.tone-deep { background: var(--deep); color: var(--on-deep); }

.sec { padding-block: clamp(4rem, 9.5vw, 7.5rem); }
.sec h2 {
  font-size: clamp(1.95rem, 1.05rem + 3.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: 1.2rem;
}
.sec p { color: var(--ink-2); max-width: var(--measure); }
.sec p + p { margin-top: 1rem; }
.sec h3 { font-size: 1.2rem; font-weight: 520; letter-spacing: 0; margin-bottom: 0.8rem; }

.split { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip > .visual { order: -1; }
}

.lead-in { max-width: 44rem; margin-inline: auto; text-align: center; }
.lead-in p { margin-inline: auto; }

/* The leaf as a list marker, as in the app's "pages" and its week strip. */
.leafy { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; max-width: var(--measure); }
.leafy li { position: relative; padding-left: 1.7rem; color: var(--ink-2); }
.leafy li::before {
  content: "";
  position: absolute; left: 0; top: 0.4em;
  width: 0.95rem; height: 0.95rem;
  background: var(--leaf);
  -webkit-mask: var(--leaf-mask) center / contain no-repeat;
  mask: var(--leaf-mask) center / contain no-repeat;
}
.leafy li b, .leafy li strong { color: var(--ink); }
.more { margin-top: 1.6rem; font-weight: 520; }
.more.plain { font-weight: 340; max-width: 34rem; }
.tone-deep .leafy li::before { background: var(--leaf-on-deep); }

/* ---- the phone ---------------------------------------------------------------------------------- */

.phone {
  --pw: 15rem;
  position: relative;
  flex: none;
  width: var(--pw);
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.155);
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.07),
    0 2px 5px rgb(var(--shadow) / 0.14),
    0 22px 40px -12px rgb(var(--shadow) / 0.3),
    0 50px 80px -36px rgb(var(--shadow) / 0.28);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--pw) * 0.122); background: #fff; }

figure.shot { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
figure.shot figcaption { color: var(--ink-3); font-size: 0.95rem; text-align: center; }

/* ---- hero --------------------------------------------------------------------------------------- */

.hero { padding-block: clamp(1.75rem, 5vw, 4.25rem) clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 2rem; }
}

.hero h1 {
  font-size: clamp(2.5rem, 0.95rem + 6.4vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.026em;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero .lede {
  font-size: clamp(1.15rem, 1.02rem + 0.55vw, 1.38rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 31rem;
}

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; margin-top: 2.1rem; }
.soon { color: var(--ink-2); font-size: 1rem; }
.fine { margin-top: 1.4rem; color: var(--ink-3); font-size: 0.97rem; max-width: 30rem; }
.fine b { color: var(--ink-2); }

.hero-phones { display: flex; justify-content: center; align-items: flex-start; padding-bottom: 2.5rem; }
.hero-phones .phone-a { --pw: min(54vw, 17.5rem); position: relative; z-index: 2; }
.hero-phones .phone-b {
  --pw: min(40vw, 13rem);
  margin-inline-start: calc(var(--pw) * -0.3);
  margin-top: min(16vw, 5.5rem);
}
.hero-phones .phone { animation: rise 1.15s var(--ease) both; }
.hero-phones .phone-b { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(1.6rem); }
  to { opacity: 1; transform: none; }
}
.sample-note { grid-column: 1 / -1; text-align: center; color: var(--ink-3); font-size: 0.9rem; margin-top: -0.5rem; }

/* ---- the six page formats ----------------------------------------------------------------------- */

.pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(1rem, 3vw, 2rem); }
.pair .phone { --pw: min(40vw, 14.5rem); }
.pair .phone + .phone { margin-top: clamp(2rem, 8vw, 4.5rem); }

.formats { margin-top: clamp(3rem, 7vw, 5rem); }
.formats-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 0.9rem;
}
@media (min-width: 48rem) {
  .formats-list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
}
.fmt { display: flex; flex-direction: column; gap: 0.7rem; }
.fmt svg { display: block; width: 100%; height: auto; border-radius: 4px; filter: drop-shadow(0 6px 10px rgb(var(--shadow) / 0.12)); }
.fmt b { display: block; font-weight: 560; font-size: 0.97rem; line-height: 1.2; color: var(--ink); }
.fmt span { display: block; font-size: 0.88rem; line-height: 1.3; color: var(--ink-3); margin-top: 0.25rem; }

.sk-page { fill: var(--page); stroke: var(--line); stroke-width: 1; }
.sk-a { fill: var(--leaf); fill-opacity: 0.68; }
.sk-b { fill: var(--leaf-wash); }
.sk-note { fill: var(--page); stroke: var(--line); stroke-width: 1; }
.sk-tick { stroke: var(--ink-3); stroke-width: 1.4; stroke-linecap: round; opacity: 0.55; }
.sk-leaf { color: var(--leaf); }
.sk-rule { stroke: var(--line); stroke-width: 1; }

/* ---- the written side --------------------------------------------------------------------------- */

.sheet {
  --lh: 2.05rem;
  position: relative;
  display: flex; flex-direction: column;
  width: min(100%, 24rem);
  margin-inline: auto;
  aspect-ratio: 148 / 210;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem 1.4rem 1rem 3.1rem;
  box-shadow: 0 2px 4px rgb(var(--shadow) / 0.08), 0 28px 50px -22px rgb(var(--shadow) / 0.28);
  overflow: hidden;
}
.sheet::before {            /* six holes, for the A5 six-ring binder */
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 2.4rem;
  background: radial-gradient(circle at 50% 50%, var(--paper) 0 0.24rem, var(--line) 0.24rem 0.3rem, transparent 0.34rem) 0 0 / 100% 16.6667% repeat-y;
}
.sheet .date { font-size: 0.88rem; font-weight: 500; color: var(--ink-3); line-height: var(--lh); }
.sheet .lines {
  flex: 1;
  font-size: 1rem; line-height: var(--lh); color: var(--ink);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--lh) - 1px), var(--line) calc(var(--lh) - 1px) var(--lh));
  background-position: 0 -0.2rem;
}
.sheet .lines p { max-width: none; color: inherit; margin: 0; }
.sheet .pen { position: absolute; right: 1.1rem; bottom: 2.1rem; width: 7rem; height: auto; color: var(--leaf-ink); }
.sheet-note { margin-top: 1.1rem; text-align: center; color: var(--ink-3); font-size: 0.92rem; }

/* ---- the shelf, the month, the favourites ------------------------------------------------------- */

.triptych {
  display: flex; gap: 1.1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  margin: 3rem calc(var(--gutter) * -1) 0;
  padding: 0.5rem var(--gutter) 2.5rem;
  scrollbar-width: thin;
}
.triptych > figure { scroll-snap-align: center; flex: none; }
.triptych .phone { --pw: min(62vw, 15.5rem); }
@media (min-width: 52rem) {
  .triptych { overflow: visible; justify-content: center; gap: clamp(1.5rem, 4vw, 3.25rem); margin-inline: 0; padding-inline: 0; }
  .triptych .phone { --pw: min(26vw, 17rem); }
  .triptych > figure:nth-child(2) { margin-top: 3.5rem; }
}

/* ---- friends ------------------------------------------------------------------------------------ */

.audience {
  width: min(100%, 27rem); margin-inline: auto;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: 0 2px 4px rgb(var(--shadow) / 0.07), 0 30px 50px -26px rgb(var(--shadow) / 0.3);
}
.audience .q { font-weight: 560; font-size: 1.05rem; color: var(--ink); margin: 0 0 1rem; max-width: none; }
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  border: 1.5px solid var(--leaf-ink); color: var(--leaf-ink);
  border-radius: 999px; padding: 0.4rem 0.95rem;
  font-weight: 520; font-size: 0.95rem; line-height: 1.25;
}
.chip.on { background: var(--leaf); border-color: var(--leaf); color: var(--on-leaf); }
.clock { margin-top: 2.1rem; }
.clock-track { position: relative; height: 0.5rem; border-radius: 99px; background: var(--line); }
.clock-fill { position: absolute; inset: 0; border-radius: 99px; background: var(--leaf); }
.clock-dot { position: absolute; top: 50%; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--leaf); border: 3px solid var(--page); transform: translate(-50%, -50%); }
.clock-dot.clock-end { background: var(--page); border-color: var(--leaf); }
.clock-labels { display: flex; justify-content: space-between; margin-top: 0.85rem; font-size: 0.92rem; color: var(--ink-3); }
.clock-labels b { color: var(--ink-2); font-weight: 560; }

/* ---- saving pictures ---------------------------------------------------------------------------- */

.shapes-wrap { container-type: inline-size; }
.shapes { --gap: clamp(0.7rem, 3cqw, 2rem); display: flex; justify-content: center; align-items: flex-end; gap: var(--gap); }
.shape { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; flex: none; }
/* The three shapes share the row: their heights are what lets the widths (9:16, 4:5, 105:148) add up to the column. */
.shape svg {
  display: block; width: auto; max-width: none;
  height: min(19rem, calc((100cqw - 2 * var(--gap) - 0.5rem) / 2.07));
  filter: drop-shadow(0 2px 3px rgb(var(--shadow) / 0.1)) drop-shadow(0 18px 24px rgb(var(--shadow) / 0.2));
}
.shape b { display: block; font-weight: 560; font-size: 0.97rem; text-align: center; line-height: 1.25; }
.shape span { display: block; font-size: 0.88rem; color: var(--ink-3); text-align: center; margin-top: 0.15rem; }
.shape-bg { fill: var(--sunk); }
.shape-line { fill: none; stroke: var(--line); stroke-width: 1; }

/* ---- the printed kit ---------------------------------------------------------------------------- */

.truth {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  margin: 0 0 2.4rem;
  max-width: 40rem;
}
.truth p { color: var(--ink); max-width: none; }

.kit-art { width: min(100%, 28rem); margin-inline: auto; display: block; height: auto; overflow: visible; }
.kit-sheets > g { filter: drop-shadow(0 10px 14px rgb(var(--shadow) / 0.2)); }
.holes circle { fill: var(--paper); stroke: var(--line); stroke-width: 1; }

.steps { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; counter-reset: s; max-width: var(--measure); }
.steps li { counter-increment: s; position: relative; padding-left: 2.6rem; color: var(--ink-2); }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: -0.05em;
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--leaf-ink); color: var(--leaf-ink);
  font-weight: 577; font-size: 0.98rem;
}
.steps b { color: var(--ink); }

.in-the-box { margin-top: clamp(3rem, 6vw, 4.5rem); display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 56rem) { .in-the-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.in-the-box > * { min-width: 0; }

.price {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.6rem 1.7rem;
}
.price .amount { font-size: clamp(2.1rem, 1.5rem + 2vw, 2.8rem); font-weight: 450; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin: 0 0 0.2rem; max-width: none; }
.price .amount small { display: block; margin-top: 0.3rem; font-size: 1rem; font-weight: 340; letter-spacing: 0; color: var(--ink-3); }
.price p { max-width: none; }
.price .cur { color: var(--ink-2); margin: 0 0 1rem; }
.price .keep { margin-top: 1rem; color: var(--ink-3); font-size: 0.96rem; }
.price .quiet { color: var(--ink-3); font-size: 0.96rem; }
.signup { margin-top: 2rem; }
.signup .intro { color: var(--ink-2); max-width: 30rem; margin-bottom: 1.1rem; }
.signup .intro b { color: var(--ink); }
.signup .fineprint { margin-top: 0.9rem; color: var(--ink-3); font-size: 0.94rem; max-width: 26rem; }

/* ---- ruled lists: privacy and the questions ----------------------------------------------------- */

dl.ruled { margin-top: clamp(2rem, 5vw, 3.2rem); border-top: 1px solid var(--line); }
dl.ruled > div { padding: 1.35rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.45rem 3rem; }
@media (min-width: 52rem) { dl.ruled > div { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
dl.ruled dt { font-weight: 560; font-size: 1.12rem; line-height: 1.3; color: var(--ink); text-wrap: balance; }
dl.ruled dd { color: var(--ink-2); max-width: 38rem; }
dl.ruled dd + dd { margin-top: 0.7rem; }

/* ---- the close ---------------------------------------------------------------------------------- */

.tone-deep h2, .tone-deep .h2 { color: var(--on-deep); }
.tone-deep p { color: var(--on-deep-2); }
.tone-deep a, .tone-deep a:hover { color: var(--on-deep); text-decoration-color: color-mix(in srgb, var(--on-deep) 40%, transparent); }
.tone-deep .soon { color: var(--on-deep-2); }
.tone-deep ::selection { background: var(--on-deep); color: var(--deep); }
.tone-deep :focus-visible { outline-color: var(--on-deep); }
.tone-deep .btn-primary { background: var(--leaf); color: var(--on-leaf); }
.tone-deep .btn-primary:hover { background: #86a76d; color: var(--on-leaf); }

.closing { text-align: left; }
.closing .start { font-size: clamp(1.6rem, 1rem + 2vw, 2.3rem); line-height: 1.15; margin-bottom: 1.3rem; }
.closing-grid { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .closing-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: end; } }
.closing-grid > * { min-width: 0; }

.closing { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.site-foot { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.foot { padding-top: 1.6rem; border-top: 1px solid color-mix(in srgb, var(--on-deep) 22%, transparent); font-size: 0.97rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; padding: 0; margin: 0 0 1.1rem; }
.foot-links a { display: inline-block; padding: 0.35rem 0; }
.foot p { max-width: none; color: var(--on-deep-2); font-size: 0.92rem; }
.foot p + p { margin-top: 0.35rem; }
