/* Style of the site, shared by the French page (index.html) and the English page (en/index.html). */
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/inter-tight.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Colors of the TickFix app. The dark theme follows the system setting. */
:root {
  color-scheme: light;
  --bg: #FFFFFF; --ink: #111111; --sub: #5A5A5A; --rule: #EBEBEB; --line: #DADADA;
  --tint: #F4F4F2; --accent: #B3001B; --on-ink: #FF5A67; --on-ink-sub: #C9C9C9;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0E0E10; --ink: #F2F2EF; --sub: #A6A6A6; --rule: #222226; --line: #3A3A3F;
    --tint: #1A1A1D; --accent: #FF5A67; --on-ink: #B3001B; --on-ink-sub: #4A4A4A;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Inter Tight', system-ui, sans-serif; font-variant-numeric: tabular-nums;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .85; }
h1, h2, p, figure { margin: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--sub); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 0 16px; min-height: 76px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.brand span { color: var(--accent); }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 600; }
.top nav a { padding: 12px 0; color: var(--sub); }
.top nav .lang { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: 1px; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 72px 0 64px; }
.hero-text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-text .label { font-size: 12px; }
h1 { font-size: clamp(40px, 8vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -2px; }
h1 span { color: var(--accent); }
.lead { font-size: 18px; line-height: 1.5; color: var(--sub); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-outline { border: 1.5px solid var(--ink); }

/* Example screen of the timegrapher */
.demo-box { flex: 1 1 300px; display: flex; justify-content: center; }
.demo { width: 300px; border: 1.5px solid var(--line); border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 12px; }
.demo-head span:last-child { font-size: 11px; font-weight: 600; color: var(--sub); }
.rate { display: flex; align-items: baseline; gap: 6px; }
.rate b { font-size: 60px; font-weight: 800; letter-spacing: -2px; line-height: 1; }
.rate span { font-size: 18px; font-weight: 600; color: var(--sub); }
.stats { display: flex; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-size: 22px; font-weight: 800; }
.stats .label { letter-spacing: 1px; }
.demo-note { font-size: 12px; color: var(--sub); }

/* Features */
.features { display: flex; flex-direction: column; gap: 20px; padding: 56px 0; border-top: 2px solid var(--ink); }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 220px; min-height: 180px; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border: 1.5px solid var(--line); }
.tile svg { stroke: var(--ink); }
.tile h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; letter-spacing: -0.2px; }
.tile p { font-size: 13px; line-height: 1.45; color: var(--sub); }
.tile-filled { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tile-filled svg { stroke: var(--on-ink); }
.tile-filled p { color: var(--on-ink-sub); }

/* iPhone */
.iphone { display: flex; flex-wrap: wrap; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.iphone-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; }
.iphone-text p { font-size: 15px; line-height: 1.55; color: var(--sub); }
.steps { flex: 1 1 360px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 16px; font-weight: 700; counter-increment: step; }
.steps li::before { content: counter(step); width: 36px; height: 36px; flex: none; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.note { flex: 1 1 100%; background: var(--tint); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.45; }

/* Footer */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--sub); }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer a { display: inline-block; padding: 12px 0; }
.signature { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.open-app { color: var(--accent); font-weight: 700; }
