/* next-time.com — shared by / and /sv/ */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f7f1;
  --fg: #1c1c1e;
  --muted: #63636a;
  --rule: #e3e6dd;
  --card: #ffffff;
  --green: #85B545;          /* the logo's green — fills only */
  --green-ink: #4a7516;      /* the same hue, dark enough to read as text */
  --green-soft: #eef5e3;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 30px rgba(40,60,10,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0a;
    --bg-alt: #121410;
    --fg: #f2f2f7;
    --muted: #9a9aa1;
    --rule: #262a21;
    --card: #171a14;
    --green-ink: #a5d364;
    --green-soft: #1b2411;
    --shadow: 0 0 0 1px rgba(255,255,255,.06);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-ink); }
img, svg { max-width: 100%; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header ---------- */
header.site { padding: 1.1rem 0; }
header.site .wrap { display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); text-decoration: none; }
.brand img { width: 34px; height: 34px; display: block; }
nav { margin-left: auto; display: flex; gap: 1.4rem; font-size: .95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--fg); }
.flag { display: inline-block; width: 1.2em; height: .8em; margin-right: .4em; vertical-align: -.05em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(128,128,128,.35); }
@media (max-width: 30rem) { nav a.opt { display: none; } nav { gap: 1rem; font-size: .9rem; } }

/* ---------- hero ---------- */
.hero { padding: 2.5rem 0 4.5rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
h1 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--green-ink); }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 33rem; margin: 0 0 2rem; }
.lede-2 { margin: -1rem 0 2rem; color: var(--muted); max-width: 33rem; }
.lede-2 a { font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.2rem; }
.cta {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--fg); color: var(--bg);
  padding: .8rem 1.35rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.cta[aria-disabled="true"] { background: var(--green-soft); color: var(--green-ink); cursor: default; }
.cta svg { width: 1.1em; height: 1.1em; }
.cta-note { font-size: .92rem; color: var(--muted); }
.hero-meta { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }

.stage { display: flex; flex-direction: column; align-items: center; position: relative; }
.stage::before {
  content: ""; position: absolute; inset: 8% -12% 8% -12%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 38%, transparent), transparent);
  filter: blur(10px); z-index: 0;
}
.hint { position: relative; margin: 1.1rem 0 0; font-size: .9rem; color: var(--muted); }

@media (max-width: 54rem) {
  .hero { padding-top: 1.25rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- the phone ---------- */
.phone {
  --pw: min(330px, 78vw);
  position: relative; z-index: 1;
  width: var(--pw);
  aspect-ratio: 1320 / 2700;
  font-size: calc(var(--pw) / 20.6);          /* 1em = 16px at full width */
  background: #000; color: #fff;
  border-radius: 3.2em;
  box-shadow: 0 0 0 .14em #3a3a3c, 0 0 0 .5em #111, 0 0 0 .56em #2c2c2e, 0 2.5em 5em -1.5em rgba(0,0,0,.55);
  overflow: hidden;
  user-select: none; -webkit-user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.island { position: absolute; top: .75em; left: 50%; translate: -50% 0; width: 5.8em; height: 1.7em; border-radius: 1em; background: #0a0a0a; box-shadow: 0 0 0 1px #161616; }
.clock { position: absolute; top: 12%; left: 0; right: 0; text-align: center; color: #9b9b9f; }
.clock .date { font-size: 1.05em; font-weight: 600; }
.clock .time { font-size: 5.2em; font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.la {
  position: absolute; left: .7em; right: .7em; bottom: 21%;
  background: #0e0e0f;
  border: 1px solid #4a4a4e;
  border-radius: 1.5em;
  padding: .7em .75em .5em;
}
.la-grid { display: grid; gap: .05em .3em; min-height: 8.2em; align-content: start; }
.la-item {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; gap: .5em;
  min-width: 0; height: 1.6em; padding: 0 .1em;
  cursor: pointer; border-radius: .5em;
  -webkit-tap-highlight-color: transparent;
}
.la-item:focus-visible, .la-more:focus-visible, .la-done:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.la-item .ring {
  flex: none; width: .95em; height: .95em; border-radius: 50%;
  border: .1em solid #8e8e93;
  display: grid; place-items: center;
  transition: background .15s, border-color .15s;
}
.la-item .ring svg { width: 70%; height: 70%; opacity: 0; transition: opacity .15s; }
.la-item .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78em; font-weight: 500; color: #ececf0; transition: opacity .2s; }
.la-grid[data-cols="1"] .name { font-size: .95em; }
.la-grid[data-cols="2"] .name { font-size: .88em; }
.la-item.checked .ring { background: var(--green); border-color: var(--green); }
.la-item.checked .ring svg { opacity: 1; }
.la-item.checked .name { opacity: .35; text-decoration: line-through; }
.la-item.enter { animation: slide-in .28s ease-out; }
@keyframes slide-in { from { opacity: 0; transform: translateY(.4em); } }

.la-foot { display: flex; align-items: center; gap: .5em; margin-top: .25em; font-size: .74em; color: #8e8e93; min-height: 1.6em; }
.la-foot .cart { width: 1.15em; height: 1.15em; flex: none; }
.la-more { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3em; padding: .15em .3em; border-radius: .5em; }
.la-more svg { width: .8em; height: .8em; }
.la-more[hidden] { display: none; }
.la-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.la-done { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-height: 9.8em; display: grid; place-items: center; text-align: center; border-radius: 1em; }
.la-done b { display: block; font-size: 1.5em; }
.la-done span { display: block; font-size: .78em; color: #8e8e93; margin-top: .3em; }
.home-bar { position: absolute; bottom: .5em; left: 50%; translate: -50% 0; width: 35%; height: .3em; border-radius: 1em; background: #6e6e73; }

/* ---------- sections ---------- */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); border-block: 1px solid var(--rule); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--green-ink); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 1rem; text-wrap: balance; }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; margin: 0 0 .35rem; }
.sub { color: var(--muted); max-width: 38rem; margin: 0 0 2.5rem; font-size: 1.08rem; }
p { margin: 0 0 1rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 1.5rem; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 2rem; height: 2rem; margin-bottom: 1rem;
  border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; font-size: .95rem;
}
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split p { color: var(--muted); }
.split .fine { font-size: .92rem; border-left: 3px solid var(--green); padding-left: .9rem; }
.art { background: var(--card); border: 1px solid var(--rule); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.art svg { display: block; width: 100%; height: auto; }
@media (max-width: 54rem) {
  .steps { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.flip > .art { order: 2; }
  section { padding: 3.5rem 0; }
}

/* map art */
.map-land { fill: var(--green-soft); }
.map-road { stroke: var(--bg); stroke-width: 9; fill: none; stroke-linecap: round; }
.map-block { fill: color-mix(in srgb, var(--green) 16%, var(--card)); }
.map-fence { fill: color-mix(in srgb, var(--green) 22%, transparent); stroke: var(--green); stroke-width: 2; stroke-dasharray: 6 6; }
.map-path { stroke: var(--green-ink); stroke-width: 3; fill: none; stroke-dasharray: 2 8; stroke-linecap: round; }
.map-you { fill: #0a84ff; stroke: #fff; stroke-width: 3; }
.map-label { font: 600 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: var(--fg); }
.pulse { transform-origin: 300px 150px; animation: pulse 2.8s ease-out infinite; }
@keyframes pulse { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.12); opacity: 0; } }

/* photo art */
.scan { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; padding: 1.75rem 1.5rem; }
.note {
  background: #fffdf3; color: #2b3a67; border-radius: 6px; padding: 1rem 1rem 1.2rem;
  font: 600 1.05rem/1.85 "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  transform: rotate(-2.5deg);
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  background-image: repeating-linear-gradient(transparent 0 1.85em, #dfe6f5 1.85em calc(1.85em + 1px));
  background-position: 0 .95rem;
}
.scan .arrow { color: var(--green-ink); width: 28px; height: 28px; }
.sheet { background: var(--bg-alt); border: 1px solid var(--rule); border-radius: 14px; padding: .7rem .9rem .8rem; min-width: 0; }
.sheet-bar { display: flex; justify-content: space-between; font-size: .9rem; color: #0a84ff; margin-bottom: .35rem; }
.sheet-hint { margin: .5rem 0 0; font-size: .74rem; line-height: 1.35; color: var(--muted); }
.found .tick.off { background: none; border: 1.5px solid var(--muted); }
.found .dup { color: var(--muted); }
.found small { display: block; font-size: .72rem; line-height: 1.2; }
.found { list-style: none; margin: 0; padding: 0; font-size: .98rem; }
.found li { display: flex; align-items: center; gap: .55rem; padding: .42rem 0; border-bottom: 1px solid var(--rule); }
.found li:last-child { border-bottom: 0; }
.found .tick { flex: none; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--green); display: grid; place-items: center; }
.found .tick svg { width: 62%; height: 62%; }
@media (max-width: 26rem) { .scan { grid-template-columns: 1fr; } .scan .arrow { rotate: 90deg; margin: 0 auto; } }

/* facts */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; margin: 0; }
.facts div { border-top: 2px solid var(--green); padding-top: 1rem; }
.facts dt { font-weight: 700; letter-spacing: -0.01em; margin-bottom: .25rem; }
.facts dd { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 54rem) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } }

/* closing */
.closing { text-align: center; }
.closing img { width: 84px; height: 84px; margin-bottom: 1.25rem; }
.closing .sub { margin-inline: auto; }
.closing .cta-row { justify-content: center; }

footer.site { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: baseline; }
footer.site a { color: var(--muted); }
footer.site .legal { flex-basis: 100%; margin: .4rem 0 0; font-size: .82rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .la-item.enter { animation: none; }
}
