/* Toi en un mot: the home page and the free result.
   Colours come from the real deliverables: the cream paper and the indigo of the watercolour
   illustration, the olive to amber gradient of the story card, the ochre of its autumn leaves.
   Loaded by unmot/home.html and unmot/free_result.html; every rule is scoped to .um or to a page
   holding .um-home. */

@font-face {
  font-family: "Young Serif Unmot";
  src: url("fonts/young-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree Unmot";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Caveat Unmot";
  src: url("fonts/caveat-latin.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

.um {
  --um-paper: #fbf7ee;
  --um-card: #fffdf7;
  --um-ink: #232235;
  --um-soft: #4b4a5c;
  --um-muted: #5c5a6b;
  --um-line: #e6dcc5;
  --um-line-soft: #f0e8d6;
  --um-olive: #3f6212;
  --um-olive-deep: #2c4609;
  --um-olive-light: #e4ebcf;
  --um-amber: #a16207;
  --um-amber-light: #fbf3dc;
  --um-indigo: #3c3f8f;
  --um-indigo-light: #e3e3f4;
  --um-night: #23254d;
  --um-gold: #f3c25a;
  --um-cta: linear-gradient(90deg, var(--um-olive), var(--um-amber));
  --um-display: "Young Serif Unmot", Georgia, serif;
  --um-text: "Figtree Unmot", system-ui, sans-serif;
  --um-script: "Caveat Unmot", cursive;
  font-family: var(--um-text);
  color: var(--um-ink);
  line-height: 1.5;
}
.um *, .um *::before, .um *::after { box-sizing: border-box; }
.um h1, .um h2, .um h3 { font-family: var(--um-display); font-weight: 400; color: var(--um-ink); margin: 0; letter-spacing: 0; }
.um p { margin: 0; }
.um a { color: var(--um-olive); }
.um a:hover { color: var(--um-olive-deep); }
.um a:focus-visible, .um button:focus-visible, .um input:focus-visible { outline: 3px solid var(--um-amber); outline-offset: 2px; }
.um img { display: block; max-width: 100%; height: auto; }

/* The page around it: paper background, the logo instead of the emoji. */
body:has(.um-home) { background: #fbf7ee; }
body:has(.um-home) .topbar { max-width: 1200px; padding: 16px max(18px, env(safe-area-inset-left, 0px)); }
body:has(.um-home) .brand { font-family: "Young Serif Unmot", Georgia, serif; font-weight: 400; font-size: 1.25rem; color: #232235; }
body:has(.um-home) .brand-emoji {
  font-size: 0; width: 32px; height: 32px; flex: 0 0 auto;
  background: url("logo.svg") center / contain no-repeat;
}
body:has(.um-home) .topnav a { color: #4b4a5c; font-family: "Figtree Unmot", system-ui, sans-serif; }
body:has(.um-home) .footer { max-width: 1200px; color: #4b4a5c; }

.um-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.um-hand { font-family: var(--um-script); font-weight: 700; color: var(--um-amber); font-size: 1.6rem; line-height: 1.1; }
.um-blue { color: var(--um-indigo); }
.um-green { color: var(--um-olive); }
.um-note { font-size: 0.88rem; color: var(--um-muted); }

.um-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--um-cta); color: #ffffff; font: 600 1.05rem var(--um-text);
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 8px 20px rgba(63, 98, 18, 0.25);
}
.um a.um-btn, .um a.um-btn:hover { color: #ffffff; }
.um-btn:hover { filter: brightness(1.07); }
.um-btn.ghost, .um a.um-btn.ghost { background: #ffffff; color: var(--um-olive); border: 2px solid var(--um-olive); box-shadow: none; }
.um-btn.ghost:hover { background: var(--um-olive-light); filter: none; }
.um-btn[hidden] { display: none; }
.um-wide { width: 100%; }

.um-sticker {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: #ffffff; color: var(--um-indigo); font: 700 0.78rem var(--um-text);
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(35, 34, 53, 0.15);
}
.um-tilt-left { transform: rotate(-1.5deg); }
.um-tilt-right { transform: rotate(2deg); }

/* The top of the page: the trend, the title, the free test, the real story card. */
.um-hero {
  position: relative; overflow: hidden; padding: 28px 0 52px;
  background: radial-gradient(1100px 480px at 85% 8%, #efe6cf 0%, rgba(239, 230, 207, 0) 60%);
}
.um-sprig { position: absolute; left: 1%; top: 10px; opacity: 0.5; pointer-events: none; }
.um-hero-grid { position: relative; display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) { .um-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } }
.um-hero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.um-hero h1 { font-size: clamp(2.05rem, 5vw, 3.5rem); line-height: 1.08; }
.um-lead { font-size: 1.12rem; color: var(--um-soft); max-width: 560px; }

.um-form {
  background: #ffffff; border-radius: 22px; padding: 20px; max-width: 580px;
  box-shadow: 0 20px 50px rgba(35, 34, 53, 0.12); display: flex; flex-direction: column; gap: 14px;
}
.um-form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.um-form-head h2 { font-size: 1.35rem; }
.um-field { display: flex; flex-direction: column; gap: 6px; }
.um-field label, .um-form legend { font-weight: 600; font-size: 0.97rem; }
.um-form input[type="text"] {
  min-height: 50px; width: 100%; border: 1.5px solid #ddd5c2; border-radius: 14px; padding: 0 16px;
  font: 1rem var(--um-text); background: var(--um-card); color: var(--um-ink);
}
.um-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.um-form fieldset[hidden] { display: none; }
.um-form legend { margin-bottom: 8px; padding: 0; }
.um-choices { display: grid; gap: 8px; }
@media (min-width: 560px) { .um-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.um-opt {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px;
  border: 1.5px solid #ddd5c2; border-radius: 14px; background: var(--um-card); font-size: 0.97rem; cursor: pointer;
}
.um-opt input { accent-color: var(--um-olive); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.um-opt:has(input:checked) { border-color: var(--um-olive); background: #f1f4e6; }
.um-form .quiz-progress { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; color: var(--um-muted); }
.um-form .quiz-progress .meter { background: var(--um-line-soft); border-radius: 999px; overflow: hidden; }
.um-form .quiz-progress .meter > i { display: block; height: 100%; background: var(--um-cta); }
.um-form .quiz-back { color: var(--um-olive); }

.um-hero-card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.um-hero-card > div { position: relative; width: 100%; max-width: 340px; }
.um-hero-card img { width: 100%; border-radius: 22px; box-shadow: 0 30px 60px rgba(35, 34, 53, 0.25); }
.um-hero-card figcaption { text-align: center; max-width: 330px; }
.um-hero-card .um-sticker { top: -12px; left: -10px; }

.um-result-zone { padding-top: 8px; padding-bottom: 40px; }

/* Four true facts on a night band. */
.um-band { background: var(--um-night); color: #ffffff; padding: 22px 0; }
.um-band ul { list-style: none; margin: 0 auto; display: grid; gap: 14px; }
@media (min-width: 600px) { .um-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .um-band ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.um-band li { display: flex; gap: 10px; align-items: center; }
.um-band svg { flex: 0 0 auto; }

.um-intro { padding-top: 68px; padding-bottom: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.um-intro h2 { font-size: clamp(1.85rem, 4vw, 2.6rem); line-height: 1.15; }
.um-intro > p:last-child { max-width: 720px; color: var(--um-soft); font-size: 1.06rem; }

/* One section per product: the real example, then what you get and the button. */
.um-product { padding: 40px 0 60px; }
.um-product.alt { background: #f2eedf; padding: 60px 0; }
.um-product-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .um-product-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; }
  .um-product-grid.reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (max-width: 899px) { .um-product-grid.reverse .um-shot { order: -1; } }
.um-shot { position: relative; min-width: 0; }
.um-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.um-copy > p { font-size: 1.06rem; color: var(--um-soft); }
.um-copy > .um-note { font-size: 0.9rem; color: var(--um-muted); }
.um-copy .um-btn { align-self: flex-start; }
.um-copy-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.um-copy-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.1rem); }
.um-price { font-family: var(--um-display); font-size: 1.7rem; color: var(--um-olive); }
.um-tag { align-self: flex-start; font: 700 0.8rem var(--um-text); padding: 5px 12px; border-radius: 999px; }
.um-tag.green { background: var(--um-olive-light); color: var(--um-olive); }
.um-tag.blue { background: var(--um-indigo-light); color: var(--um-indigo); }
.um-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.um-list li { display: flex; gap: 10px; align-items: flex-start; }
.um-list li::before {
  content: "✓"; flex: 0 0 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--um-olive-light); color: var(--um-olive); font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}

/* The herbarium label of the twenty words. */
.um-label {
  background: var(--um-card); border: 1px solid var(--um-line); border-radius: 18px;
  padding: 34px 22px 22px; box-shadow: 0 18px 40px rgba(35, 34, 53, 0.1);
}
.um-label-head { text-align: center; border-bottom: 1px dashed #d8ccb0; padding-bottom: 14px; margin-bottom: 12px; }
.um-label-head > p:last-child { color: var(--um-soft); }
.um-kicker { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--um-muted); }
.um-word { font-family: var(--um-display); font-size: 3rem; line-height: 1.1; color: var(--um-indigo); margin: 4px 0 2px; }
.um-words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; margin: 0; }
@media (min-width: 560px) { .um-words { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.um-words div { padding: 6px 0; border-bottom: 1px solid var(--um-line-soft); min-width: 0; }
.um-words dt { font-size: 0.74rem; color: var(--um-muted); }
.um-words dd { margin: 0; font-family: var(--um-display); font-size: 1.04rem; overflow-wrap: anywhere; }
.um-reasons { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; background: #f4f1e4; border-radius: 12px; padding: 14px 16px; font-size: 0.92rem; }

/* The illustration and its story version, side by side. */
.um-pair { display: flex; gap: 16px; align-items: flex-end; justify-content: center; }
.um-pair-main { position: relative; flex: 1 1 60%; max-width: 380px; min-width: 0; }
.um-print { border-radius: 6px; border: 10px solid #ffffff; box-shadow: 0 24px 50px rgba(35, 34, 53, 0.2); }
.um-pair-story { flex: 1 1 36%; max-width: 220px; min-width: 0; border-radius: 16px; box-shadow: 0 24px 50px rgba(35, 34, 53, 0.25); }

/* Small products in tiles, and the way back to the free test. */
.um-more { padding: 52px 0; }
.um-more-grid { display: grid; gap: 18px; }
@media (min-width: 800px) { .um-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.um-tile { background: #ffffff; border: 1px solid var(--um-line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.um-tile.warm { background: #f4ecd6; border-color: #f4ecd6; }
.um-tile > strong, .um-tile-head strong { font-family: var(--um-display); font-weight: 400; font-size: 1.3rem; }
.um-tile-head { display: flex; justify-content: space-between; gap: 12px; }
.um-tile p { color: var(--um-soft); }
.um-tile .um-btn { align-self: flex-start; min-height: 46px; }

.um-how { background: #ffffff; border-top: 1px solid #ece3cf; border-bottom: 1px solid #ece3cf; padding: 60px 0; }
.um-how h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); text-align: center; margin-bottom: 28px; }
.um-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
@media (min-width: 860px) { .um-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.um-steps li { display: flex; flex-direction: column; gap: 10px; }
.um-steps h3 { font-size: 1.3rem; }
.um-steps p { color: var(--um-soft); }
.um-step-n {
  width: 44px; height: 44px; border-radius: 50%; background: var(--um-olive); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-family: var(--um-display); font-size: 1.3rem;
}
.um-postit {
  align-self: flex-start; font-family: var(--um-script); font-weight: 700; font-size: 1.35rem; color: var(--um-amber);
  background: var(--um-amber-light); border-radius: 10px; padding: 6px 12px; transform: rotate(-1.5deg);
}
.um-quote { font-style: italic; color: var(--um-indigo); background: #f0f0f8; border-radius: 10px; padding: 8px 12px; }

.um-trust { padding: 56px 0 20px; }
.um-trust-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .um-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.um-trust h2 { font-size: 1.5rem; margin-bottom: 8px; }
.um-trust p { color: var(--um-soft); }
.um-guides { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.um-guides a {
  display: inline-block; padding: 8px 14px; border-radius: 999px; background: #ffffff; border: 1px solid var(--um-line);
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
}

.um-faq { padding: 36px 0 64px; }
.um-faq .um-wrap { max-width: 820px; }
.um-faq h2 { font-size: 1.9rem; margin-bottom: 6px; }
.um-faq details { border-bottom: 1px solid var(--um-line); padding: 16px 0; }
.um-faq summary { font-weight: 600; cursor: pointer; font-size: 1.05rem; }
.um-faq details p { margin-top: 10px; color: var(--um-soft); }

/* The free result: the person's eight words, then the full version compared with it. */
.um-res { display: grid; gap: 24px; }
@media (min-width: 900px) { .um-res { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }
.um-res-free, .um-res-offer {
  background: #ffffff; border: 1px solid var(--um-line); border-radius: 22px; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 16px 34px rgba(35, 34, 53, 0.08); min-width: 0;
}
.um-res-offer { border: 2px solid #e2c98f; }
.um-res-head { text-align: center; }
.um-res-head > p:last-child { color: var(--um-soft); }
.um-res-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .um-res-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.um-res-tiles div { background: var(--um-card); border: 1px solid var(--um-line); border-radius: 14px; padding: 9px 12px; min-width: 0; }
.um-res-tiles span { display: block; font-size: 0.74rem; color: var(--um-muted); }
.um-res-tiles b { font-family: var(--um-display); font-weight: 400; font-size: 1.05rem; overflow-wrap: anywhere; }
.um-res-free > p { color: var(--um-soft); }
.um-res-offer h2 { font-size: 1.6rem; line-height: 1.2; }
.um-res-example { position: relative; background: var(--um-card); border: 1px solid var(--um-line); border-radius: 18px; padding: 34px 16px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 0.92rem; }
.um-res-example .um-word { font-size: 2rem; text-align: center; margin: 0; }
.um-res-example > p:nth-of-type(2) { text-align: center; color: var(--um-soft); }
.um-compare { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.um-compare th, .um-compare td { padding: 9px 6px; border-bottom: 1px solid #ece3cf; text-align: left; vertical-align: top; }
.um-compare th { font-weight: 600; color: var(--um-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; }
.um-compare td.full { color: var(--um-olive); font-weight: 600; }
.um-res-facts { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: var(--um-soft); }
.um-res-small { display: flex; gap: 14px; align-items: center; background: #f2eedf; border-radius: 16px; padding: 12px; text-decoration: none; color: var(--um-ink); }
.um-res-small img { width: 64px; border-radius: 4px; border: 4px solid #ffffff; flex: 0 0 auto; }
.um-res-small > span { flex: 1 1 auto; min-width: 0; }
.um-res-small .price { font-family: var(--um-display); font-weight: 400; color: var(--um-olive); }

/* Every other page of the site (offer, pack, result, account): this file is only ever loaded
   by Toi en un mot (unmot/page_head.html), so the shared classes take the site's look here. */
body { background: #fbf7ee; font-family: "Figtree Unmot", system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: "Young Serif Unmot", Georgia, serif; font-weight: 400; }
.topbar { max-width: 1200px; }
.brand { font-size: 1.25rem; color: #232235; }
.brand-emoji {
  font-size: 0; width: 32px; height: 32px; flex: 0 0 auto;
  background: url("logo.svg") center / contain no-repeat;
}
.topnav a, .footer { color: #4b4a5c; }
.card { border: 1px solid #e6dcc5; box-shadow: 0 16px 34px rgba(35, 34, 53, 0.07); }
.badge { background: #e4ebcf; color: #3f6212; }
.offer-price b, .price { font-family: "Young Serif Unmot", Georgia, serif; font-weight: 400; color: #3f6212; }
.btn { border-radius: 999px; }
input[type="text"], input[type="email"], textarea { background: #fffdf7; border-color: #ddd5c2; }

/* The samples at the top of each product page (templates/teasers/). */
.um-teaser-duo { display: grid; gap: 12px; align-items: center; }
@media (min-width: 560px) { .um-teaser-duo { grid-template-columns: minmax(0, 0.8fr) 26px minmax(0, 1.2fr); } }
@media (max-width: 559px) { .um-teaser-duo .teaser-arrow { transform: rotate(90deg); } }
.um-mini-label {
  background: var(--um-card); border: 1px solid var(--um-line); border-radius: 16px;
  padding: 14px 14px 12px; box-shadow: 0 10px 24px rgba(35, 34, 53, 0.08); min-width: 0;
}
.um-mini-label .um-kicker { text-align: center; font-size: 0.72rem; margin: 0; }
.um-mini-label .um-word { text-align: center; font-size: 1.9rem; margin: 2px 0 8px; }
.um-mini-label .um-words { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.um-mini-label .um-words dd { font-size: 0.98rem; }
.um-mini-reason { margin: 10px 0 0; font-size: 0.86rem; background: #f4f1e4; border-radius: 10px; padding: 8px 10px; }
.um-teaser-pair { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.um-teaser-friends { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.um-teaser-friends .um-word { font-size: clamp(1.1rem, 4.6vw, 1.45rem); overflow-wrap: normal; }
.um-teaser-friends .um-mini-label { padding: 12px 10px 10px; }
.um-teaser-friends .um-words { grid-template-columns: 1fr; }

/* Home: a short way down to the full versions, for whoever does not take the test. */
.um-skip { font-size: 0.95rem; font-weight: 600; }
.um .um-skip a { text-decoration: none; }

/* Proposals in the paid form: the upgrade and the pack, only when they are on sale. */
.um-hint { background: #f4ecd6; border-radius: 12px; padding: 10px 12px; font-size: 0.9rem; margin: 12px 0 0; }
.um-hint a { font-weight: 700; color: #3f6212; }

/* After the free test: the illustration of the most complete product. */
.um-res-picture { position: relative; display: flex; flex-direction: column; gap: 8px; }
.um-res-picture img { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 6px; border: 8px solid #ffffff; box-shadow: 0 16px 34px rgba(35, 34, 53, 0.18); }
.um-res-picture .um-note { text-align: center; }
.um-res-small > .um-res-small-word {
  flex: 0 0 64px; height: 64px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: #ffffff; color: var(--um-indigo); font-family: var(--um-display); font-size: 1.05rem;
}

/* Phones: the first question of the test fits in the first screen. */
@media (max-width: 599px) {
  .um-sprig { display: none; }
  .um-hero { padding-top: 14px; }
  .um-hero-text { gap: 10px; }
  .um-hand { font-size: 1.3rem; }
  .um-hero h1 { font-size: 1.85rem; }
  .um-lead { font-size: 1rem; }
  .um-form { padding: 16px; gap: 10px; }
  .um-form-head h2 { font-size: 1.2rem; }
  .um-form input[type="text"] { min-height: 46px; }
  .um-opt { min-height: 44px; padding: 8px 12px; }
  .um-choices { gap: 6px; }
  .um-hero-card > div { max-width: 250px; }
  .um-res-small .price { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) { .um-tilt-left, .um-tilt-right, .um-postit { transform: none; } }
