/* Eversetto home page (/ and /en), direction B — docs/landing-redesign/PLAN.md.
   Loaded after tokens.css by index.html and en.html only; the shared styles.css is not loaded here, so the
   policy and «Time to Meet!» pages keep their own look. Every class starts with `h-`.
   Apple Marketing Guidelines: device images are shown as is — no shadow, crop, overlap or animation. */

:root {
  --h-ease: cubic-bezier(0.32, 0.72, 0, 1);
  /* Small grey text. The --sub token is 3.5:1 on the light background; this one passes 4.5:1. */
  --h-muted: var(--sub);
}
:root[data-theme='light'] {
  --h-muted: rgba(26, 26, 24, 0.68);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
svg.h-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.h-wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}
.h-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.h-skip:focus {
  top: 16px;
}
/* A heading for screen readers only. */
.h-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.h-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.h-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
}
.h-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.h-nav {
  display: flex;
  gap: 32px;
  margin-inline: auto;
  font-size: 14px;
  font-weight: 500;
}
.h-nav a {
  color: var(--h-muted);
  transition: color 0.3s var(--h-ease);
}
.h-nav a:hover {
  color: var(--accent);
}
.h-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.h-tool {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font:
    700 12px/1 'JetBrains Mono',
    ui-monospace,
    monospace;
  cursor: pointer;
  transition:
    border-color 0.3s var(--h-ease),
    color 0.3s var(--h-ease);
}
.h-tool:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.h-login {
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.h-login:hover {
  color: var(--accent);
}

/* «Apps» menu: a <details>; home.js closes it on an outside click and Esc. */
.h-apps {
  position: relative;
}
.h-apps > summary {
  list-style: none;
  color: var(--h-muted);
  font-weight: 500;
  font-size: 13px;
}
.h-apps > summary::-webkit-details-marker {
  display: none;
}
.h-apps-count {
  color: var(--accent);
  font-weight: 700;
}
.h-apps[open] > summary .h-icon {
  transform: rotate(180deg);
}
.h-apps-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: 260px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-surface);
  background: var(--surface);
}
.h-apps-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-control);
  font-size: 13px;
  font-weight: 700;
}
.h-apps-menu a:hover,
.h-apps-menu a[aria-current='page'] {
  background: var(--chip);
}
.h-apps-menu img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.h-apps-menu small {
  display: block;
  color: var(--h-muted);
  font-weight: 500;
  font-size: 11px;
}

/* Text pieces shared by sections */
.h-eyebrow {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.h-eyebrow::before {
  content: '/';
  color: var(--accent);
}
.h-accent {
  color: var(--accent);
}
.h-lead {
  color: var(--h-muted);
  line-height: 1.75;
  text-wrap: pretty;
}
.h-section {
  padding-block: 120px 0;
}
.h-heading {
  max-width: 760px;
}
.h-heading h2 {
  margin-top: 20px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 800;
  text-wrap: balance;
}
.h-heading .h-lead {
  margin-top: 20px;
  max-width: 620px;
}
.h-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}
.h-link:hover {
  color: var(--accent);
}

/* Hero */
.h-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 48px;
  padding-block: 56px 24px;
}
.h-hero h1 {
  margin-top: 24px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -2.5px;
  font-weight: 800;
}
.h-hero .h-lead {
  margin-top: 24px;
  max-width: 520px;
}
.h-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
/* The App Store badge: as supplied, 48 px high, clear space of a quarter of its height. */
.h-badge {
  display: inline-block;
  padding: 12px 0;
  line-height: 0;
}
.h-badge img {
  height: 48px;
  width: auto;
}
.h-points {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  font-size: 13px;
}
.h-points li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.h-check {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--radius-chip);
  background: var(--accent-tint);
  color: var(--accent);
}
.h-check .h-icon {
  width: 14px;
  height: 14px;
}
/* iPhone and Watch side by side, never overlapping; the watch is 0.549 of the phone width — the correct
   relative scale of iPhone 18 Pro Max (78.0 mm) and a 46 mm watch (39 mm) in their Apple bezels (320 → 176). */
.h-devices {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}
.h-device-phone {
  width: 320px;
}
.h-device-watch {
  width: 176px;
  margin-bottom: 36px;
}

/* Benefit strip */
.h-benefits {
  margin-top: 56px;
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  border-block: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}
.h-benefits li::before {
  content: '/ ';
  color: var(--accent);
}

/* During / after cards */
.h-feature-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.h-card {
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.h-card h3 {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.h-card .h-lead {
  margin-top: 12px;
  font-size: 14px;
}
.h-index {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent);
}
.h-example {
  margin-top: auto;
}
.h-example figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: var(--h-muted);
}
.h-set {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
}
.h-set-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}
.h-chip {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: var(--radius-chip);
  background: var(--chip);
  color: var(--h-muted);
  font-weight: 500;
}
.h-set-numbers {
  margin-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.h-set-numbers strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.h-set-numbers span {
  margin-left: 4px;
  font-size: 13px;
  color: var(--h-muted);
}
.h-set-numbers .h-times {
  margin: 0;
  font-size: 20px;
}
.h-rest {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--h-muted);
}
.h-rest strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.h-track {
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--secondary);
  overflow: hidden;
}
.h-track i {
  display: block;
  height: 100%;
  width: 38%;
  border-radius: 3px;
  background: var(--accent);
}
/* The rest timer runs (home.js adds .h-motion): the bar fills over the same 90 s the counter counts down. */
.h-motion .h-track i {
  width: 0;
  animation: h-rest 90s linear infinite;
}
@keyframes h-rest {
  to {
    width: 100%;
  }
}
.h-chart {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
}
.h-chart-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}
.h-chart-head span {
  color: var(--h-muted);
  font-weight: 500;
}
.h-bars {
  height: 140px;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}
.h-bars li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  height: 100%;
  font-size: 11px;
  color: var(--h-muted);
}
.h-bars li::after {
  content: '';
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent-tint);
}
.h-bars li:last-child::after {
  background: var(--accent);
}
.h-bars li:nth-child(1)::after {
  height: 40%;
}
.h-bars li:nth-child(2)::after,
.h-bars li:nth-child(3)::after {
  height: 52%;
}
.h-bars li:nth-child(4)::after {
  height: 64%;
}
.h-bars li:nth-child(5)::after {
  height: 76%;
}
.h-bars li:nth-child(6)::after {
  height: 88%;
}
.h-chart-foot {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--h-muted);
}

/* Apple Watch */
.h-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 64px;
}
.h-steps {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}
.h-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
}
.h-step-n {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}
.h-steps h3 {
  font-size: 16px;
  font-weight: 800;
}
.h-steps p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--h-muted);
  line-height: 1.65;
}
.h-watches {
  display: flex;
  gap: 32px;
}
.h-watches figure {
  width: 220px;
}
.h-watches figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Account and AI assistants */
.h-ai {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: start;
}
.h-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.h-col {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.h-col-accent {
  border-color: transparent;
  background: var(--accent-surface);
}
.h-col h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--h-muted);
}
.h-col-accent h3 {
  color: var(--accent-ink);
}
.h-col ul {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.h-col li {
  display: flex;
  gap: 10px;
}
.h-col li::before {
  content: '/';
  color: var(--accent);
  font-weight: 800;
}
.h-note {
  margin-top: 20px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--h-muted);
}
.h-chat {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.h-chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
}
/* --accent on --accent-tint is 4.1:1 in the light theme; --accent-ink on --accent-surface passes in both. */
.h-chat-head .h-chip {
  background: var(--accent-surface);
  color: var(--accent-ink);
}
.h-bubble {
  align-self: flex-end;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: var(--radius-surface);
  background: var(--secondary);
  font-size: 13px;
  line-height: 1.6;
}
.h-reply {
  max-width: 360px;
  font-size: 13px;
  line-height: 1.6;
}
.h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.h-tags li {
  padding: 6px 10px;
  border-radius: var(--radius-chip);
  background: var(--chip);
  font-size: 11px;
  color: var(--h-muted);
}
.h-chat figcaption {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--h-muted);
}

/* How it works */
.h-how-phone {
  width: 300px;
}

/* Details */
.h-details {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.h-details li {
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
}
.h-details h3 {
  font-size: 16px;
  font-weight: 800;
}
.h-details p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--h-muted);
}

/* FAQ */
.h-faq {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.h-faq details {
  border-bottom: 1px solid var(--line);
}
.h-faq summary {
  min-height: 64px;
  padding-block: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}
.h-faq summary::-webkit-details-marker {
  display: none;
}
.h-faq summary span {
  color: var(--accent);
  font-size: 20px;
  transition: transform 0.3s var(--h-ease);
}
.h-faq details[open] summary span {
  transform: rotate(45deg);
}
.h-faq details p {
  max-width: 760px;
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--h-muted);
}

/* Closing, the other app, footer */
.h-closing {
  margin-top: 120px;
  padding: 64px 32px;
  border-radius: var(--radius-card);
  background: var(--surface);
  text-align: center;
}
.h-closing .h-eyebrow {
  justify-content: center;
}
.h-closing h2 {
  margin-top: 20px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  font-weight: 800;
  text-wrap: balance;
}
.h-closing .h-link {
  margin-top: 24px;
}
.h-other {
  margin-top: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.h-other h2 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 800;
}
.h-other p {
  margin-top: 8px;
  max-width: 560px;
  font-size: 14px;
  color: var(--h-muted);
}
.h-other img {
  width: 96px;
  height: 96px;
}
.h-footer {
  margin-top: 64px;
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  font-size: 13px;
}
.h-footer .h-brand {
  font-size: 15px;
}
.h-footer span {
  color: var(--h-muted);
  margin-right: auto;
}
.h-footer a:hover {
  color: var(--accent);
}

/* Motion — «calm». home.js adds .h-motion to <html> only when the visitor allows motion, so without JS or
   with reduced motion everything is simply in place. Device images never move (Apple Marketing Guidelines). */
.h-motion .h-hero-copy > * {
  animation: h-rise 0.6s var(--h-ease) both;
}
.h-motion .h-hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}
.h-motion .h-hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}
.h-motion .h-hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}
.h-motion .h-hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}
@keyframes h-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.h-reveal {
  transition:
    opacity 0.6s var(--h-ease),
    transform 0.6s var(--h-ease);
}
.h-motion .h-reveal:not(.h-in) {
  opacity: 0;
  transform: translateY(12px);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* On paper every section is there, seen on screen or not. */
@media print {
  .h-reveal,
  .h-hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Narrow screens */
@media (max-width: 1000px) {
  .h-hero,
  .h-split,
  .h-ai {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-devices,
  .h-watches {
    justify-content: center;
  }
  .h-how-phone {
    justify-self: center;
  }
  /* Room for the focus ring inside the scrolling row. */
  .h-nav {
    order: 3;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding: 6px 6px 8px;
  }
  .h-header {
    gap: 12px 16px;
    padding-top: 12px;
  }
  .h-tools {
    margin-left: auto;
  }
}
@media (max-width: 700px) {
  .h-section {
    padding-top: 88px;
  }
  .h-hero {
    padding-top: 32px;
  }
  .h-device-phone {
    width: 234px;
  }
  .h-device-watch {
    width: 128px;
    margin-bottom: 24px;
  }
  .h-devices {
    gap: 16px;
  }
  .h-feature-grid,
  .h-compare,
  .h-details {
    grid-template-columns: minmax(0, 1fr);
  }
  .h-card {
    padding: 24px;
  }
  .h-watches {
    gap: 16px;
  }
  .h-watches figure {
    width: min(160px, 45vw);
  }
  .h-how-phone {
    width: 234px;
    margin-inline: auto;
  }
  .h-other {
    flex-direction: column;
    align-items: flex-start;
  }
  /* The apps menu stays reachable from the footer and the «Time to Meet!» card; the header keeps one row. */
  .h-apps {
    display: none;
  }
  .h-nav {
    gap: 20px;
    font-size: 13px;
    white-space: nowrap;
  }
}
/* Phone and watch side by side at the correct scale need 378 px, and the watch can't go below 200 px high
   (Apple Marketing Guidelines): on the narrowest screens the hero shows the phone, the watch has its own section. */
@media (max-width: 430px) {
  .h-device-watch {
    display: none;
  }
}
/* Two watches no longer fit side by side at 200 px high: one under the other. */
@media (max-width: 340px) {
  .h-watches {
    flex-wrap: wrap;
  }
  .h-watches figure {
    width: 160px;
  }
}
