/*
 * Procrastop website.
 *
 * Dark by default, because the app is. Colours are the app's own: the purple
 * in the header gradient, the near black of the task list, the greys iOS uses
 * for secondary text. System fonts throughout so the pages feel like they
 * belong next to the product rather than next to a template.
 */

:root {
  --accent: #8a5cff;
  --accent-deep: #5b3cf6;
  --accent-soft: rgba(138, 92, 255, 0.14);
  --bg: #08070d;
  --surface: #131119;
  --surface-2: #1b1825;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f6f4fb;
  --muted: #a39eb6;
  --dim: #78738c;
  --radius: 20px;
  --maxw: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-deep);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 650;
}
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- chrome */

/*
 * The sticky bar.
 *
 * One floating element that holds the brand, the whole navigation and the
 * download link. Every page renders the same markup, including a link to
 * itself; the current page is marked with aria-current rather than dropped,
 * which is what used to make the clicked tab vanish.
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px 0;
  /* Clears the notch when the page is saved to the Home Screen. */
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
}

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  border-curve: continuous;
  background: rgba(19, 17, 25, 0.78);
  backdrop-filter: saturate(170%) blur(20px);
  -webkit-backdrop-filter: saturate(170%) blur(20px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Lifts off the page once it is actually overlapping content. */
.site-header.is-stuck .navbar {
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.02rem;
  flex: none;
}
.brand .mark { width: 28px; height: 28px; border-radius: 8px; flex: none; }

.nav-menu { flex: 1; display: flex; justify-content: flex-end; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 560;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
/* The page you are on stays in the list and is marked, never removed. */
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--accent-soft); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(118deg, var(--accent-deep), var(--accent));
  transition: transform 0.18s ease;
}
.nav-cta:hover { transform: translateY(-1px); }

/* Hidden on desktop, where every link already fits. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}
.nav-toggle:hover { border-color: var(--line-strong); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 17px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -5.5px; }
.nav-toggle-bars::after { position: absolute; top: 5.5px; }

@media (max-width: 880px) {
  .brand { margin-right: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 13px 14px; font-size: 1rem; border-radius: 12px; }

  /*
   * Without scripting the links simply wrap onto a second row inside the bar,
   * so the navigation is still complete and reachable. The hamburger is only
   * shown when there is JavaScript to operate it.
   */
  .navbar { flex-wrap: wrap; }
  .nav-menu { order: 3; flex-basis: 100%; padding-top: 6px; }
  .nav-toggle { display: none; }

  /* With scripting, the same markup becomes a dropdown panel. */
  .js .navbar { flex-wrap: nowrap; }
  .js .nav-toggle { display: grid; }
  .js .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    order: 0;
    flex-basis: auto;
    display: none;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    border-curve: continuous;
    /* Solid, not translucent: a blurred panel nested inside the blurred bar
       composites unreliably, and this sits over body text where legibility
       matters more than the effect. */
    background: #16131f;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.66);
  }
  .js .nav-menu[data-open="true"] { display: block; }
}

/* Only the wordmark goes; the icon still identifies the site. */
@media (max-width: 400px) {
  .brand span { display: none; }
  .nav-cta { padding: 0 13px; font-size: 0.88rem; }
  .navbar { gap: 8px; padding-left: 10px; }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--dim);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { max-width: 42ch; line-height: 1.6; }
/* Understated by design: a credit, not a headline. */
.footer-credits { margin: 10px 0 6px; color: var(--muted); font-size: 0.86rem; }

/* ------------------------------------------------------------- typography */

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); font-weight: 780; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); font-weight: 760; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 56ch; }
.section-intro { color: var(--muted); max-width: 58ch; margin-top: 14px; }

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

.hero { padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: -180px 0 auto;
  height: 540px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(91, 60, 246, 0.28), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/*
 * The icon and the name as one lockup. The rounded corners and glow were lost
 * when the header styles were rewritten over this block; they live here now,
 * away from anything to do with the navigation.
 */
.hero-lockup { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.hero-logo {
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 20px;
  border-curve: continuous;
  box-shadow: 0 18px 44px rgba(91, 60, 246, 0.42);
}
.hero-name {
  margin: 0;
  font-size: clamp(1.95rem, 5.4vw, 2.6rem);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--ink);
}
.hero-sub { margin: 5px 0 0; color: var(--muted); font-size: clamp(0.97rem, 2.5vw, 1.12rem); font-weight: 560; }

/* Apple's badge, used at its own proportions and never restyled. */
.store-badge { display: inline-flex; border-radius: 10px; line-height: 0; }
.store-badge img { width: 182px; height: auto; }
.store-badge:hover { opacity: 0.88; }

.hero h1 { margin: 20px 0 22px; max-width: 16ch; }
.hero .lede { max-width: 52ch; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.button-primary {
  color: #fff;
  background: linear-gradient(118deg, var(--accent-deep), var(--accent));
  box-shadow: 0 14px 34px rgba(91, 60, 246, 0.34);
}
.button-primary:hover { transform: translateY(-2px); }
.button-secondary { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.button-secondary:hover { border-color: var(--accent); }

.hero-note { margin-top: 18px; color: var(--dim); font-size: 0.9rem; }

/* -------------------------------------------------------------- sections */

section { scroll-margin-top: 96px; }
.band { padding: clamp(64px, 9vw, 108px) 0; border-top: 1px solid var(--line); }

.stack { display: grid; gap: 18px; }

/* The problem: one short, recognisable beat. */
.problem p { font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.38; letter-spacing: -0.025em; max-width: 24ch; font-weight: 600; }
.problem .after { font-size: 1.05rem; font-weight: 400; color: var(--muted); max-width: 54ch; letter-spacing: 0; }

/* Feature grid */
.grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* The persistence ladder: three steps, increasing weight. */
.ladder { display: grid; gap: 14px; margin-top: 44px; }
.rung {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.rung .step {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 760;
  font-size: 0.95rem;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}
.rung h3 { margin-bottom: 6px; }
.rung p { color: var(--muted); margin: 0; }
.rung.is-loud { border-color: rgba(138, 92, 255, 0.4); background: linear-gradient(180deg, rgba(138, 92, 255, 0.09), transparent); }
.rung.is-loud .step { background: linear-gradient(118deg, var(--accent-deep), var(--accent)); color: #fff; }

/* Screenshots */
.shots {
  display: grid;
  gap: 26px;
  margin-top: 48px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.shot { text-align: center; }
.shot img {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: #000;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.shot figcaption { margin-top: 16px; color: var(--muted); font-size: 0.93rem; }
.shot figcaption b { color: var(--ink); font-weight: 650; display: block; }

/* A quiet line closing a band, pointing somewhere else. */
.band-note { margin-top: 24px; color: var(--muted); font-size: 0.97rem; }

/* ------------------------------------------------------------------ guide */

/*
 * The Guide is the one page that is neither marketing nor legal: a short
 * walkthrough of the app. It reuses the home page's bands and tiles, and adds
 * a chip row for jumping about, numbered how-to lists, and a narrow column
 * with a phone beside it where a picture explains faster than a sentence.
 */

.guide-hero { padding: clamp(56px, 9vw, 96px) 0 clamp(28px, 4vw, 44px); }
.guide-hero h1 { margin: 18px 0 20px; max-width: 18ch; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.jump a:hover { color: var(--ink); border-color: var(--accent); }

/* One step of the guide: text on the left, an optional phone on the right. */
.howto { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: 40px; align-items: start; }
.howto.with-shot { grid-template-columns: minmax(0, 1fr) minmax(200px, 268px); }
.howto .shot img { max-width: 268px; }
.howto .shot figcaption { margin-top: 12px; }

.howto h3 { margin-top: 26px; }
.howto h3:first-child { margin-top: 0; }
.howto p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

/* Numbered instructions, deliberately plain. */
.howto ol { counter-reset: hstep; margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
/*
 * The marker is positioned rather than laid out beside the text. A grid or
 * flex row would turn every inline element in the item — each <b> — into its
 * own track, which stacks the words vertically.
 */
.howto ol li {
  counter-increment: hstep;
  position: relative;
  padding-left: 38px;
  min-height: 26px;
  color: var(--muted);
  max-width: 60ch;
}
.howto ol li::before {
  content: counter(hstep);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}
.howto ul { margin: 14px 0 0; padding-left: 1.15em; color: var(--muted); max-width: 60ch; }
.howto ul li { margin-bottom: 8px; }
.howto b, .howto strong { color: var(--ink); font-weight: 650; }

/* A short aside inside a guide section, for the one caveat worth stating. */
.aside {
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 60ch;
}
.aside b { color: var(--ink); }

/* Two phones side by side, kept to two columns rather than the auto-fit
   the home page's gallery uses, so a pair never splits onto two rows. */
.shots-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }

@media (max-width: 760px) {
  .howto.with-shot { grid-template-columns: 1fr; }
  .howto .shot img { max-width: 236px; }
  .shots-pair { gap: 20px; }
}

/* Two phones side by side leave each one about 150px wide on a phone, which
   is small enough that the interface in them stops being readable. One at a
   time from here down. */
@media (max-width: 560px) {
  .shots-pair { grid-template-columns: 1fr; gap: 32px; }
}

/* Closing call to action */
.cta { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.cta h2 { max-width: 18ch; margin-inline: auto; }
.cta .lede { margin: 18px auto 0; text-align: center; }
.cta .actions { justify-content: center; }

/* FAQ */
.faq { margin-top: 40px; display: grid; gap: 12px; }
details.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 22px;
}
details.qa summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
details.qa[open] summary::after { content: "\2013"; }
details.qa p { color: var(--muted); margin: 0 0 20px; max-width: 64ch; }

/* ---------------------------------------------------------- legal pages */

.legal {
  max-width: 760px;
  margin: 56px auto 96px;
  padding: clamp(26px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.legal h2 { font-size: 1.35rem; margin: 2.4em 0 0.6em; }
.legal h3 { margin: 1.8em 0 0.4em; }
.legal p, .legal li { color: #cdc9da; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal .updated { color: var(--dim); font-size: 0.9rem; margin-top: 8px; }
.legal .notice {
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}
.legal .notice p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- motion */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--maxw)); }
  .nav-links { gap: 16px; font-size: 0.88rem; }
  .button { width: 100%; }
  .actions { gap: 12px; }
  .rung { grid-template-columns: 1fr; gap: 14px; padding: 22px; }
}
