/* sedumo.com. One deep-green screen in both themes, like the first coming-soon page: the animated logo, one
   sentence and the signup. Colours follow the brand tokens (Sedumo packages/brand/tokens.css). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2"); }
:root {
  --wm-letters: #f3f6f2; --wm-ring: #f3f6f2; --wm-leaf: #9ccbb2;
  --ground: #22503f; --ground-deep: #1b4233; --mark: #f3f6f2; --muted: #bcd3c6; --line: rgba(243,246,242,.16);
  --ink: #18211d; --blush: #c4655a; --blush-dark: #a9534a; --blush-soft: #f2b9ae; --leaf: #9ccbb2;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); }
body {
  background: var(--ground); color: var(--mark); margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
main { max-width: 1040px; margin: 0 auto; padding-block: 40px 72px; }
main.narrow { max-width: 680px; }
:focus-visible { outline: 2px solid var(--blush-soft); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; margin: 0; }

.brand { display: inline-block; }
.brand svg { height: 30px; width: auto; display: block; }

/* Home: everything centred on one screen */
body.home { min-height: 100svh; display: flex; flex-direction: column; }
body.home main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 56px; }
.logo-hero { background: none; border: 0; padding: 24px 40px; margin: 0; cursor: pointer; border-radius: 24px; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.logo-hero svg { display: block; width: min(70vw, 520px); height: auto; overflow: visible; }
.intro { max-width: 560px; margin-top: 28px; }
.intro h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; }
.intro h1 em { font-style: normal; color: var(--blush-soft); }
.lead { font-size: 18px; color: var(--muted); margin-top: 16px; }
.lead p { margin: 0; }

form { margin: 32px auto 0; display: grid; gap: 14px; max-width: 460px; }
.roles { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roles legend { padding: 0; margin: 0 auto 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.roles label { position: relative; display: block; cursor: pointer; text-align: left; border: 1.5px solid rgba(243,246,242,.28); border-radius: 16px; padding: 12px 14px 12px 40px; transition: background-color .15s, border-color .15s; }
.roles label:hover { border-color: rgba(243,246,242,.6); }
.roles input { position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; margin: 0; accent-color: var(--ground); color-scheme: light; }
.roles strong { display: block; font-size: 15px; line-height: 1.3; color: var(--mark); }
.roles small { display: block; font-size: 12.5px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.roles label:has(input:checked) { background: #fffdf8; border-color: #fffdf8; }
.roles label:has(input:checked) strong { color: var(--ink); }
.roles label:has(input:checked) small { color: #56605a; }
.roles label:has(input:focus-visible) { outline: 2px solid var(--blush-soft); outline-offset: 3px; }
.roles input:focus-visible { outline: none; }
.row { display: flex; gap: 8px; background: #fffdf8; border-radius: 999px; padding: 6px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.5); }
.row:focus-within { outline: 2px solid var(--blush-soft); outline-offset: 3px; }
.row input { flex: 1; min-width: 0; font: 16px var(--body); color: var(--ink); background: transparent; border: 0; padding: 10px 6px 10px 18px; color-scheme: light; }
.row input:focus { outline: none; }
/* An address filled in by the browser keeps the field's own colours and stays inside the pill (browsers paint
   their own pale blue otherwise, with square corners). */
.row input { border-radius: 999px; }
.row input:-webkit-autofill, .row input:-webkit-autofill:hover, .row input:-webkit-autofill:focus, .row input:autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fffdf8 inset; box-shadow: 0 0 0 1000px #fffdf8 inset;
  transition: background-color 100000s ease-in-out 0s;
}
.row input::placeholder { color: #7d8781; }
button[type=submit] { font: 600 16px var(--body); background: var(--blush); color: #fff; border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer; white-space: nowrap; }
button[type=submit]:hover { background: var(--blush-dark); }
button[type=submit]:disabled { opacity: .6; cursor: default; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; text-align: left; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; padding-inline: 12px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--leaf); color-scheme: light; }
.consent a { color: var(--mark); }
.fine { font-size: 12.5px; margin: 0; color: var(--muted); opacity: .8; }
.error { color: var(--blush-soft); font-size: 14px; margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brand.big svg { height: 44px; }
.back { margin-top: 28px; font-size: 15px; }
.back a { color: var(--leaf); }
.done { margin: 32px auto 0; max-width: 460px; padding: 14px 18px; border-radius: 14px; background: var(--ground-deep); color: var(--mark); font-size: 16px; }
.done.preview { color: #f3ddb0; }

footer { max-width: 1040px; width: 100%; margin: 0 auto; padding-block: 24px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--mark); }

/* Privacy and other text pages */
.prose { margin-top: 56px; }
.prose h1 { font-size: clamp(34px, 5vw, 46px); }
.prose h2 { font-size: 23px; margin-top: 40px; }
.prose p, .prose li { color: #dbe7e0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--mark); }
.prose a { color: var(--leaf); }
.prose .updated { color: var(--muted); font-size: 14px; margin-top: 8px; }

@media (max-width: 480px) {
  .logo-hero { padding: 16px 20px; }
  .roles { grid-template-columns: 1fr; }
  .row { flex-direction: column; border-radius: 22px; padding: 8px; }
  .row input { padding: 10px 14px; text-align: center; }
}

/* The home page's ground: huge barcode bars drifting slowly at the edges and fading out behind the content, with a
   fine grain over them. */
body.home { position: relative; isolation: isolate; background: #1d4636; }
body.home::before, body.home::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body.home::before {
  background:
    radial-gradient(ellipse 65% 60% at 50% 42%, #22503f 30%, rgba(34,80,63,0) 100%),
    repeating-linear-gradient(90deg, #1a4031 0 14px, transparent 14px 34px, #1a4031 34px 40px, transparent 40px 70px,
      #1a4031 70px 98px, transparent 98px 112px, #1a4031 112px 118px, transparent 118px 150px, #1a4031 150px 170px,
      transparent 170px 178px, #1a4031 178px 184px, transparent 184px 230px),
    linear-gradient(#245542, #1d4636);
  background-size: auto, 230px 100%, auto;
}
body.home::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .16; mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: no-preference) {
  body.home::before { animation: drift 40s linear infinite; }
  @keyframes drift { to { background-position: 0 0, 230px 0, 0 0; } }
}

/* The logo's animation. Lengths inside the o are in its own units: the ring's centre is 0,0 and its radius 50;
   the leaf joins the ring at 24.4,-29.1. The letters sit on the baseline y = 0. */
.leaf-grow, .leaf-lean, .leaf-sway, .burst path { transform-origin: 24.4px -29.1px; }
.leaf-lean { transform: rotate(var(--lean, 0deg)); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
@media (prefers-reduced-motion: no-preference) {
  /* 1. s e d u m rise from below the baseline, one after another */
  .animated .ltr { animation: rise .75s cubic-bezier(.2, 1.5, .4, 1) calc(var(--i) * 70ms) both,
                              bump .5s cubic-bezier(.3, 0, .3, 1) calc(1.22s + (4 - var(--i)) * 45ms); }
  @keyframes rise { from { transform: translateY(520px) scaleY(.5); opacity: 0; } }
  /* 3. ... and get nudged, m first, when the o runs into them */
  @keyframes bump { 35% { transform: translateX(-34px); } }
  /* 2. the o rolls in from the right: 300 units of travel is 344 degrees of a wheel with radius 50 */
  .animated .o-roll { animation: roll 1s cubic-bezier(.35, .1, .3, 1) .35s both; }
  @keyframes roll {
    0% { transform: translateX(300px) rotate(344deg); opacity: 0; }
    12% { opacity: 1; }
    82% { transform: translateX(-7px) rotate(-8deg); }
    100% { transform: none; }
  }
  /* 4. the leaf sprouts, then sways for good */
  .animated .leaf-grow { animation: sprout .8s cubic-bezier(.3, 1.9, .4, 1) 1.4s both; }
  @keyframes sprout { from { transform: scale(0) rotate(-70deg); } }
  .animated .leaf-sway { animation: sway 4.2s ease-in-out 2.3s infinite; }
  @keyframes sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(5deg); } 70% { transform: rotate(-4deg); } }
  /* A click: the o spins once and the leaf regrows */
  .animated.again .o-spin { animation: spin .9s cubic-bezier(.4, 1.4, .4, 1); }
  @keyframes spin { from { transform: rotate(-360deg); } }
  .animated.again .leaf-grow { animation: sprout .7s cubic-bezier(.3, 1.9, .4, 1) .45s both; }
  /* The text follows the logo */
  .intro { animation: arrive .8s cubic-bezier(.2, .8, .2, 1) 1.5s both; }
  @keyframes arrive { from { opacity: 0; transform: translateY(14px); } }
}
