/* Last Done landing (/lastdone/). Colours and type follow the app's own tokens
   (LastDone-design-handoff.md §2): ivory canvas, warm ink, tangerine brand, Manrope + Inter. */

.ld-page {
  --ld-canvas: #fff3e6;
  --ld-sunken: #f6eadd;
  --ld-surface: #fff;
  --ld-ink: #302923;
  --ld-ink-2: #4a3f37;
  --ld-ink-3: #6b5e54;
  --ld-brand: #d85c32;
  --ld-brand-strong: #bf4d27;
  --ld-brand-text: #a83d20;
  --ld-peach: #f3ad87;
  --ld-tile: #fbe9dd;
  --ld-border: #ead6c2;
  --ld-display: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
  --ld-text: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--ld-canvas);
  color: var(--ld-ink);
}

.ld-main {
  font-family: var(--ld-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ld-ink);
}

.ld-main [hidden] { display: none !important; }
.ld-main h1, .ld-main h2, .ld-main h3 { font-family: var(--ld-display); color: var(--ld-ink); }
.ld-main a { color: var(--ld-brand-text); }
.ld-main :focus-visible { outline: 3px solid var(--ld-brand); outline-offset: 3px; border-radius: 6px; }
.ld-sprite { position: absolute; overflow: hidden; }
.ld-visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.ld-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

/* Hero */
.ld-hero { overflow: hidden; border-bottom: 1px solid var(--ld-border); }
.ld-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: end;
  padding-top: 56px;
}
.ld-hero-copy { padding-bottom: 88px; }
.ld-crumbs { display: flex; gap: 8px; margin-bottom: 40px; font-size: .85rem; color: var(--ld-ink-3); }
.ld-crumbs a { color: inherit; text-decoration: none; }
.ld-crumbs a:hover { text-decoration: underline; }
.ld-wordmark {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-family: var(--ld-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em;
  color: var(--ld-ink);
}
.ld-mark { width: 34px; height: 34px; color: var(--ld-brand); }
.ld-dot { color: var(--ld-brand); }
.ld-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 4.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.ld-hero h1 span { color: var(--ld-brand-strong); }
.ld-lead { max-width: 33em; margin-bottom: 32px; font-size: 1.125rem; color: var(--ld-ink-2); }

.ld-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.ld-cta-note { margin: 0; font-size: .9rem; color: var(--ld-ink-3); }
.ld-main .ld-play {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 24px 8px 18px;
  border-radius: 999px;
  background: var(--ld-ink);
  color: #fff;
  text-decoration: none;
  transition: background-color .15s ease;
}
.ld-main .ld-play:hover { background: #1f1a16; }
.ld-play span { display: flex; flex-direction: column; font-family: var(--ld-display); font-weight: 700; font-size: 1.1rem; line-height: 1.15; }
.ld-play small { font-family: var(--ld-text); font-weight: 400; font-size: .72rem; letter-spacing: .02em; opacity: .8; }

.ld-hero-shot {
  position: relative;
  display: flex; justify-content: center; align-items: flex-start;
  height: 560px;
  overflow: hidden;
}
.ld-hero-shot::before {
  /* The app's progress ring, drawn once behind the phone. */
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  top: 40px; left: 50%;
  margin-left: -220px;
  border-radius: 50%;
  border: 28px solid var(--ld-tile);
  border-left-color: transparent;
  transform: rotate(-30deg);
}
.ld-hero-shot .ld-phone {
  position: relative;
  width: min(340px, 100%);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}
.ld-hero-shot .ld-phone img { border-radius: 31px 31px 0 0; }

/* Phone frame: generic, no device brand. */
.ld-phone {
  margin: 0;
  border: 9px solid #1e1a17;
  border-radius: 40px;
  overflow: hidden;
  background: #1e1a17;
  box-shadow: 0 30px 60px -30px rgba(48, 41, 35, .45);
}
.ld-phone img { display: block; width: 100%; height: auto; border-radius: 31px; }

/* Try it */
.ld-try { padding: 104px 0 112px; }
.ld-try-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.ld-try h2, .ld-section-head h2, .ld-faq h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.ld-try-copy p { max-width: 30em; margin-bottom: 14px; color: var(--ld-ink-2); font-size: 1.06rem; }
.ld-try-demo { position: relative; max-width: 420px; width: 100%; justify-self: center; }

.ld-card {
  padding: 24px;
  border-radius: 32px;
  background: var(--ld-ink);
  color: var(--ld-canvas);
}
.ld-card-cat {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ld-peach);
}
.ld-card-cat svg, .ld-templates svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ld-main .ld-card-title { margin-bottom: 14px; color: var(--ld-canvas); font-size: 1.25rem; font-weight: 700; }
.ld-card-elapsed { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; min-height: 76px; }
.ld-card-elapsed strong {
  font-family: var(--ld-display); font-weight: 800;
  font-size: 4.5rem; line-height: .95; letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.ld-card-elapsed strong.is-text { font-size: 3rem; letter-spacing: -.035em; }
.ld-card-elapsed span { font-family: var(--ld-display); font-weight: 600; font-size: 1.25rem; color: var(--ld-peach); }
.ld-card-meta { min-height: 2.6em; margin-bottom: 20px; font-size: .85rem; line-height: 1.5; color: #d9c8b8; }
.ld-card-log {
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--ld-peach);
  color: var(--ld-ink);
  font: 600 .95rem var(--ld-text);
  cursor: pointer;
  transition: transform .12s ease;
}
.ld-card-log:active { transform: scale(.96); }

.ld-snack {
  position: absolute; left: 12px; right: 12px; bottom: -64px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px;
  border-radius: 20px;
  background: #3d352e;
  color: var(--ld-canvas);
  font-size: .9rem;
  animation: ld-snack-in .2s ease-out;
}
.ld-snack button {
  padding: 6px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--ld-peach);
  font: 600 .9rem var(--ld-text); cursor: pointer;
}
@keyframes ld-snack-in { from { opacity: 0; transform: translateY(8px); } }

/* Template list */
.ld-list { padding: 96px 0; background: var(--ld-sunken); }
.ld-section-head { max-width: 620px; margin-bottom: 36px; }
.ld-section-head p { color: var(--ld-ink-2); font-size: 1.06rem; }
.ld-templates {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.ld-templates li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ld-border);
}
.ld-templates svg {
  width: 40px; height: 40px; padding: 10px;
  border-radius: 10px;
  background: var(--ld-tile);
  color: var(--ld-brand-text);
}
.ld-templates span { font-weight: 600; }
.ld-templates em { font-style: normal; font-size: .9rem; color: var(--ld-ink-3); white-space: nowrap; }

/* Screens */
.ld-screens { padding: 104px 0 88px; }
.ld-screens-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.ld-screen { margin: 0; }
.ld-screen .ld-phone { max-width: 300px; margin-inline: auto; }
.ld-screen figcaption { max-width: 300px; margin: 24px auto 0; color: var(--ld-ink-2); font-size: .98rem; }
.ld-screen figcaption strong { display: block; margin-bottom: 4px; color: var(--ld-ink); font-family: var(--ld-display); font-size: 1.1rem; }

/* Details */
.ld-details { padding: 32px 0 104px; }
.ld-details-list {
  list-style: none;
  counter-reset: ld;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}
.ld-details-list li { counter-increment: ld; position: relative; padding-left: 52px; }
.ld-details-list li::before {
  content: counter(ld, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--ld-display); font-weight: 800; font-size: 1.05rem;
  color: var(--ld-brand);
}
.ld-details-list h3 { margin-bottom: 6px; font-size: 1.15rem; font-weight: 700; }
.ld-details-list p { color: var(--ld-ink-2); }
.ld-details-list em { font-style: normal; font-weight: 600; color: var(--ld-ink); }

/* Privacy */
.ld-private { padding: 96px 0; background: var(--ld-ink); color: var(--ld-canvas); }
.ld-private-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.ld-main .ld-private h2 {
  color: var(--ld-canvas);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
}
.ld-private p { margin-bottom: 14px; color: #d9c8b8; font-size: 1.1rem; }

/* FAQ */
.ld-faq { padding: 96px 0; }
.ld-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.ld-faq details { border-bottom: 1px solid var(--ld-border); }
.ld-faq details:first-child { border-top: 1px solid var(--ld-border); }
.ld-faq summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  font-family: var(--ld-display); font-weight: 700; font-size: 1.08rem;
  cursor: pointer; list-style: none;
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: "+"; color: var(--ld-brand); font-size: 1.4rem; line-height: 1; }
.ld-faq details[open] summary::after { content: "−"; }
.ld-faq details p { padding-bottom: 20px; color: var(--ld-ink-2); max-width: 36em; }

/* End */
.ld-end { padding: 88px 0 96px; background: var(--ld-sunken); text-align: center; }
.ld-end-inner { display: flex; flex-direction: column; align-items: center; }
.ld-end-inner > img { width: 72px; height: 72px; margin-bottom: 20px; border-radius: 18px; }
.ld-end h2 { margin-bottom: 28px; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; }
.ld-maker { margin-top: 24px; font-size: .9rem; color: var(--ld-ink-3); }

@media (max-width: 900px) {
  .ld-hero-grid, .ld-try-grid, .ld-private-grid, .ld-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .ld-hero-grid { gap: 8px; padding-top: 36px; }
  .ld-hero-copy { padding-bottom: 32px; }
  .ld-crumbs { margin-bottom: 28px; }
  .ld-hero-shot { height: 440px; }
  .ld-hero-shot .ld-phone { width: min(300px, 82%); }
  .ld-hero-shot::before { width: 360px; height: 360px; margin-left: -180px; border-width: 22px; }
  .ld-try { padding: 72px 0 104px; }
  .ld-try-grid { gap: 32px; }
  .ld-private-grid, .ld-faq-grid { gap: 24px; }
  .ld-details-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ld-screens-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(260px, 72%);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
  }
  .ld-screens-row::-webkit-scrollbar { display: none; }
  .ld-screen { scroll-snap-align: center; }
}

@media (max-width: 640px) {
  .ld-templates { grid-template-columns: minmax(0, 1fr); }
  .ld-list, .ld-faq, .ld-private { padding: 72px 0; }
  .ld-screens { padding: 72px 0 64px; }
  .ld-card-elapsed strong { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ld-snack { animation: none; }
  .ld-card-log, .ld-main .ld-play { transition: none; }
}
