/* toolko.app: the app's colors and type (app/src/constants/palette.ts), direction « Bandes de couleur ». */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-800.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("../fonts/dmsans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("../fonts/dmsans-600.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("../fonts/dmsans-700.woff2") format("woff2"); }

:root {
  --clay: #A84A14;
  --clay-text: #8A3A0E;
  --on-clay: #FFF6EC;
  --ground: #F3EEE6;
  --paper: #FBF8F3;
  --sand: #E6DDCF;
  --outline: #D5C9B8;
  --ink: #2A241D;
  --ink-soft: #5A4F42;
  --ink-lift: #4A4035;
  --sage: #3F5A3B;
  --sage-night: #2E4A2A;
  --mustard: #E2A72E;
  --light-soft: #B9AD9C;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--ground); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--clay-text); }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.split > .text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split > .media { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
h1, .h1 { font-size: clamp(46px, 7vw, 76px); }
h2 { font-size: clamp(38px, 5.6vw, 64px); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 20px); max-width: 32em; }
.kicker { font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Bands: one color per step of the story, as on the app's first launch. */
.band { padding: 104px 0; }
.band--clay { background: var(--clay); color: var(--on-clay); }
.band--ground { background: var(--ground); color: var(--ink); }
.band--sage { background: var(--sage); color: var(--ground); }
.band--ink { background: var(--ink); color: var(--ground); }
.band--mustard { background: var(--mustard); color: var(--ink); }
.band--ground .soft { color: var(--ink-soft); }

/* Header */
.top { padding: 24px 0 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.brand:hover { color: inherit; }
.soon { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--on-clay); color: var(--ink); }
.soon svg { flex: none; }

.hero { padding: 64px 0 104px; }
.hero .split { padding-top: 96px; }

/* The logo, as wide as the page: the kit's horizontal lockup (svg/logo-horizontal.svg), in two parts
   so that the small screens can stack them. */
.lockup { display: flex; align-items: flex-start; gap: 3.5%; margin: 0; }
.lockup svg { display: block; height: auto; overflow: visible; }
.lockup .mark { width: 24.8%; }
.lockup .word { width: 71.7%; margin-top: 3.9%; }
.lockup .nut, .lockup .sheet, .lockup .spark, .lockup .l { transform-box: fill-box; transform-origin: center; }
.lockup .leaf { transform-box: fill-box; transform-origin: 100% 100%; }
.lockup .check, .lockup .line { stroke-dasharray: 1px 1px; }
.tagline { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.tagline p { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
.idea { position: relative; flex: 0 1 420px; background: var(--on-clay); color: var(--ink); border-radius: 32px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.idea blockquote { position: relative; margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; text-wrap: pretty; }
.idea .typed { display: none; position: absolute; inset: 0; }
.idea .caret { display: inline-block; width: 3px; height: 0.95em; margin-left: 2px; vertical-align: -0.12em; background: var(--clay); border-radius: 2px; animation: blink 1s steps(1) infinite; }
.idea .note { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
@keyframes blink { 50% { opacity: 0; } }

/* The four bars of the story. */
.steps { display: flex; gap: 8px; max-width: 280px; }
.steps span { flex: 1; height: 5px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, 0.3); }
.band--ground .steps span { background: var(--outline); }
.band--mustard .steps span { background: rgba(42, 36, 29, 0.2); }
.steps i { display: block; height: 100%; border-radius: inherit; background: currentColor; transform-origin: left; }
.steps .todo i { transform: scaleX(0); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 260px; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.card--ink { flex-basis: 320px; background: var(--ink); color: var(--ground); }
.card .price { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.card--ink .price { font-size: 28px; color: var(--mustard); }
.card .meta { font-size: 15px; color: var(--ink-soft); }
.card--ink .meta { color: var(--light-soft); }
.pill { align-self: flex-start; background: var(--mustard); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 12px; }

/* Phones: real captures of the app. */
.phone { width: 290px; max-width: 100%; border-radius: 46px; padding: 9px; background: var(--ink); }
.band--sage .phone { background: var(--sage-night); }
.band--ink .phone { background: var(--ink-lift); }
.phone img { border-radius: 37px; width: 100%; }

/* The plan, session by session. */
.sessions { display: flex; flex-direction: column; gap: 8px; }
.session { background: var(--ground); color: var(--ink); border-radius: 20px; padding: 14px 18px; display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.session span + span { font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.wait { align-self: center; font-size: 14px; font-weight: 700; color: var(--light-soft); }

/* Limits and price */
.duo { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; }
.duo > * { flex: 1 1 400px; border-radius: 32px; padding: 40px; display: flex; flex-direction: column; gap: 14px; }
.duo .limits { background: var(--paper); }
.duo .limits h2, .duo .offer h2 { font-size: 32px; letter-spacing: -0.02em; }
.duo .limits p { color: var(--ink-soft); }
.duo .offer { background: var(--ink); color: var(--ground); }
.offer .nut-line { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 19px; }
.offer .amount { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--mustard); }
.offer p { color: var(--light-soft); }
.offer .soon { align-self: flex-start; background: var(--ground); }

/* Footer */
.foot { background: var(--ink); color: var(--ground); padding: 48px 0 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot .brand img { height: 35px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 15px; }
.foot nav a { color: var(--ground); }
.foot nav a.mail { color: var(--mustard); }
.foot small { color: var(--light-soft); font-size: 14px; }

/* Information pages (support, confidentiality…): the band on top, a light sheet over it. */
.page-head { background: var(--clay); color: var(--on-clay); padding: 0 0 120px; }
.page-head .top .back { color: var(--on-clay); font-weight: 600; text-decoration: none; }
.page-head .title { padding-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.page-head .title p { opacity: 0.9; }
.draft { align-self: flex-start; background: var(--mustard); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
.sheet { position: relative; margin-top: -64px; background: var(--ground); border-radius: 36px 36px 0 0; padding: 64px 0 96px; }
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 44px; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; }
.prose ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.box { background: var(--paper); border-radius: 28px; padding: 32px; }
.box--ink { background: var(--ink); color: var(--ground); }
.box--ink a { color: var(--mustard); }
.rows { display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.rows > div { background: var(--paper); border-radius: 20px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.rows strong { flex: 1 1 170px; }
.rows span { flex: 2 1 260px; color: var(--ink-soft); }
.todo-mark { background: #F6E1D2; color: var(--clay-text); border-radius: 6px; padding: 1px 6px; font-weight: 600; }

/* Motion: only when the visitor accepts it, and only once Motion is there (html.motion, set in <head>). */
html.motion [data-reveal]:not(.is-in),
html.motion [data-stagger] > :not(.is-in) { opacity: 0; transform: translateY(20px); }
html.motion .idea .typed { display: block; }
html.motion .lockup:not(.is-in) :is(.nut, .sheet, .spark, .l),
html.motion [data-intro]:not(.is-in) { opacity: 0; }
html.motion .lockup:not(.is-in) :is(.check, .line) { stroke-dashoffset: 1px; }
html.motion .idea .ghost { visibility: hidden; }
html.motion .idea.is-typed .caret { display: none; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .steps .now i { animation: fill 0.9s 0.4s var(--ease) both; }
  @supports (animation-timeline: view()) {
    .band:not(.hero) .steps .now i { animation: fill linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 640px) {
  .band { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
  .hero .split { padding-top: 64px; }
  .lockup { flex-direction: column; gap: 22px; }
  .lockup .mark { width: 52%; }
  .lockup .word { width: 100%; margin-top: 0; }
  .tagline { margin-top: 24px; }
  .idea { padding: 28px; }
  .duo > * { padding: 30px; }
  .session { flex-direction: column; gap: 2px; }
}
