/* Seedgate AB
   Brand (brand/seedgate-identity-proposal.pdf): Green #1F5E44 · Aubergine #442C55 ·
   Mint #B5E5C5 on dark surfaces only · Paper #F4F3EF · Ink #111111. Logo always one colour.
   Typeface Manrope.
   Palette: Aubergine is the primary (header, links, buttons, focus); the footer is a deeper
   tone of Aubergine, so the page is one colour family with Mint as its only green. Neutrals
   carry a faint aubergine cast. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --green: #1F5E44;
  --aubergine: #442C55;
  --mint: #B5E5C5;
  --paper: #F4F3EF;
  --ink: #111111;

  --bg: var(--paper);
  --text: var(--ink);
  --heading: var(--ink);
  --muted: #5E5A63;
  --rule: rgba(17, 17, 17, 0.16);
  --link: var(--aubergine);
  --btn-bg: var(--aubergine);
  --btn-fg: var(--paper);
  --field-bg: #FFFFFF;
  --field-border: #716C76;
  --top-bg: var(--aubergine);
  --foot-bg: #2B1D36;
  --foot-fg: rgba(244, 243, 239, 0.72);

  --wrap: 1280px;
  --gutter: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120E16;
    --text: #CBC7CE;
    --heading: var(--paper);
    --muted: #9C96A1;
    --rule: rgba(203, 199, 206, 0.18);
    --link: var(--mint);
    --btn-bg: var(--mint);
    --btn-fg: #120E16;
    --field-bg: #1C1622;
    --field-border: #857D8B;
    --top-bg: #2B1D36;
    --foot-bg: #1D1424;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }

a { color: var(--link); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--mint); color: var(--aubergine); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* Centre on a whole CSS pixel: at odd viewport widths (e.g. 1440 minus a 15px scrollbar) `auto`
   puts the column, and the logo with it, on a half pixel, which blurs the pixel-fitted logo at 1x. */
.wrap { margin-left: max(0px, round(down, (100% - var(--wrap)) / 2, 1px)); margin-right: auto; }

/* ---------- Header ---------- */
.top { background: var(--top-bg); color: var(--paper); }
.top :focus-visible { outline-color: var(--mint); }
.top-inner { display: flex; flex-direction: column; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 104px; }
.logo { display: block; line-height: 0; }
.masthead .logo img { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--paper); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 1px; }

.intro { padding: 72px 0 88px; }
.intro h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--paper);
}
.intro a { color: var(--paper); text-decoration-color: var(--mint); }
.intro .lede { margin: 20px 0 0; max-width: 34em; font-size: 18px; color: rgba(244, 243, 239, 0.78); }

/* Home: the opening screen holds one sentence and nothing else */
.top.home .top-inner { min-height: 84vh; min-height: 84svh; }
.top.home .intro { margin-top: auto; padding: 0 0 104px; }
/* "Pressed": heavy, compact, in Mint, three lines (We give / good ideas / room to grow.).
   The h1 holds two spans; the space between them keeps it one sentence for screen readers. */
.top.home .intro h1 {
  max-width: none;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--mint);
}
.top.home .intro h1 span { display: block; }
.top.home .intro h1 .l1 { max-width: 5.2em; }   /* breaks "We give / good ideas" */

/* ---------- Content system: "Register" ----------
   One pattern for every section on every page:
     <section class="row [row--feature]" id="…" aria-labelledby="…-h">
       <h2 class="row-label" id="…-h">Label</h2>
       <div class="row-body"> … </div>
     </section>
   The page is a 12-column grid. The label owns columns 1–3, the body columns 4–12, and the
   body is itself a 9-column grid on the same rhythm, so everything inside lines up with the
   columns above and below it. Each section opens on one full-width hairline, and its label is
   set as a heading in the display voice, top-aligned with the body.
   Vertical rhythm is an 8px scale: --s1 16 · --s2 24 · --s3 40 · --s4 64 · --s5 112. */
:root {
  --s1: 16px; --s2: 24px; --s3: 40px; --s4: 64px; --s5: 112px;
  --col-gap: 24px;
  --accent: var(--aubergine);
  --rule-strong: rgba(17, 17, 17, 0.28);
}
@media (prefers-color-scheme: dark) {
  :root { --accent: var(--mint); --rule-strong: rgba(203, 199, 206, 0.3); }
}

main { padding-top: var(--s5); padding-bottom: var(--s4); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  border-top: 1px solid var(--rule-strong);
  padding: var(--s3) 0 var(--s5);
}
.row:last-child { padding-bottom: var(--s4); }
.top:not(.home) ~ main .row { padding-bottom: var(--s4); }       /* inner pages: tighter rhythm for reading */
/* The section heading is a real heading: set in the page's display voice at a size that holds
   its own against the body (title 68 : label 30, about the same step as label 30 : body 17).
   It sits on the same top line as the body, so label and body read as one spread. Sections
   are divided by one continuous full-width hairline: no segments, nothing that reads as
   position or progress. */
.row-label {
  grid-column: 1 / 4;
  margin: 0;
  padding-right: var(--s2);
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--heading);
}
.row-body {
  grid-column: 4 / 13;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-content: start;
}
.row-body > * { grid-column: 1 / 7; }          /* default measure: 6 of 9 columns */
.row-body > :first-child { margin-top: 0; }
.row-body p { margin: var(--s1) 0 0; }
.row-body p:first-child { margin-top: 0; }

/* Feature: one product, set like a title page */
.app-icon {
  display: block;
  width: 96px; height: 96px;
  margin: 0 0 32px;
  border-radius: 22%;                           /* Play Store's rounded-square mask */
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08), 0 18px 40px -22px rgba(43, 29, 54, 0.55);
}
.title {
  grid-column: 1 / 10;
  margin: 0;
  /* one modular step (~1.7) under the hero line (88) and over the label (30): 88 / 52 / 30 */
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--heading);
}
.title span { display: block; }
.title .title-sub { font-weight: 300; color: var(--muted); letter-spacing: -0.03em; }
.title .sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lede, .row-body .lede {
  grid-column: 1 / 6;
  margin-top: 32px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  max-width: 24em;
}
.meta { color: var(--muted); font-size: 15px; }

/* Links that lead somewhere: weight, not underline, and a drawn corner arrow */
.links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s3); font-weight: 600; }
.row-body .links { margin-top: var(--s3); grid-column: 1 / 10; }
.links a { text-decoration: none; color: var(--heading); }
.links a:not(.store-badge) { display: inline-flex; align-items: center; gap: 12px; padding: 0 0 6px; border-bottom: 1px solid var(--rule); }
.links a:not(.store-badge)::after {
  content: "";
  width: 10px; height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  /* the shaft: a diagonal from the bottom-left corner into the head, so it reads as ↗ (or → when turned) */
  background: linear-gradient(to bottom right, transparent calc(50% - 1px), var(--accent) calc(50% - 1px), var(--accent) calc(50% + 1px), transparent calc(50% + 1px));
  transform: translateY(-2px);
  transition: transform 0.2s ease;
}
/* internal links point on (›), external links point out (↗) */
.links a:not(.store-badge):not([href^="http"])::after { transform: rotate(45deg); margin-left: -2px; }
.links a:not(.store-badge):hover { border-bottom-color: var(--accent); }
.links a[href^="http"]:not(.store-badge):hover::after { transform: translate(2px, -4px); }
.links a:not(.store-badge):not([href^="http"]):hover::after { transform: translateX(3px) rotate(45deg); }
/* Google Play badge: official artwork, unaltered, 48px tall (min 28), clear space ≥ ¼ height */
.store-badge { display: block; line-height: 0; margin: 12px 0; border-radius: 8px; }
.store-badge img { height: 48px; width: auto; }

/* Register: facts as a horizontal ledger (dt above dd), 2 + 2 + 3 + 2 body columns */
.register {
  grid-column: 1 / 10;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: var(--s3);
}
.register > div { grid-column: span 2; }
.register > div:nth-child(3) { grid-column: span 3; }
.register dt { font-size: 14px; line-height: 1.5; color: var(--muted); }
.register dd { margin: 4px 0 0; color: var(--heading); font-variant-numeric: tabular-nums; }
.register address { font-style: normal; }

/* legacy two-column sheet (kept for any page that still uses it) */
.sheet { grid-column: 1 / 7; margin: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); }
.sheet dt, .sheet dd { margin: 0; padding: 12px 0 13px; border-bottom: 1px solid var(--rule); }
.sheet dt { color: var(--muted); }
.sheet dd { color: var(--heading); }
.sheet address { font-style: normal; }

/* ---------- Inner-page title: the masthead's voice, one size down ---------- */
.top:not(.home) .intro { padding: 40px 0 72px; }
.top:not(.home) .intro h1 {
  font-weight: 600;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mint);
}
.top:not(.home) .intro .lede { margin-top: var(--s2); max-width: 30em; font-size: 18px; line-height: 1.5; color: rgba(244, 243, 239, 0.8); }

/* ---------- Form ---------- */
.form { grid-column: 1 / 6; display: flex; flex-direction: column; }
.form label { font-weight: 600; font-size: 14px; margin: var(--s2) 0 8px; color: var(--heading); }
.form label:first-child { margin-top: 0; }
.form input, .form select, .form textarea {
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 2px;
  padding: 13px 16px;
  width: 100%;
}
.form select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form textarea { resize: vertical; min-height: 11rem; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form .hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 28px; min-height: 65px; }

.button {
  align-self: flex-start;
  margin: var(--s3) 0 var(--s1);
  padding: 15px 40px;
  border: 0;
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.button:hover { background: color-mix(in srgb, var(--btn-bg) 88%, var(--ink)); }
@media (prefers-color-scheme: dark) { .button:hover { background: color-mix(in srgb, var(--btn-bg) 88%, white); } }

/* Long-form text (privacy) */
.row-body > p:not(.lede):not(.links) { max-width: 36em; }

/* ---------- Footer: on the same 12-column grid ---------- */
.foot { background: var(--foot-bg); color: var(--foot-fg); font-size: 14px; }
.foot .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: center;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
.foot .logo { grid-column: 1 / 4; }
.foot .logo img { height: 20px; width: auto; }
.foot nav { grid-column: 4 / 9; display: flex; gap: 28px; }
.foot p { grid-column: 9 / 13; margin: 0; text-align: right; }
.foot a { color: var(--paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-decoration-color: var(--mint); }
.foot :focus-visible { outline-color: var(--mint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .masthead { height: 80px; }
  .masthead .logo img { height: 24px; }
  .nav { gap: 22px; }
  .nav .hide-s { display: none; }
  .intro { padding: 48px 0 64px; }
  .top.home .top-inner { min-height: 60vh; min-height: 60svh; }
  .top.home .intro { padding-bottom: 64px; }
  /* fitted to the measure (100vw minus the 24px gutters): no line overflows even at 320px */
  .top.home .intro h1 { font-size: min(64px, calc((100vw - 48px) / 6.2)); }
  :root { --s3: 32px; --s4: 48px; --s5: 72px; --col-gap: 16px; }
  .row { grid-template-columns: minmax(0, 1fr); padding: 24px 0 var(--s5); }
  .row-label { grid-column: 1; margin-bottom: var(--s2); padding-right: 0; font-size: 24px; }
  .row-body { grid-column: 1; grid-template-columns: minmax(0, 1fr); }
  .row-body > *, .title, .lede, .row-body .lede, .row-body .links, .register, .form, .sheet { grid-column: 1; }
  .app-icon { width: 80px; height: 80px; margin-bottom: var(--s2); }
  .title { font-size: min(40px, calc((100vw - 48px) / 10)); }
  .lede, .row-body .lede { font-size: 18px; margin-top: var(--s2); }
  .register { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s2); }
  .register > div, .register > div:nth-child(3) { grid-column: span 1; }
  .sheet { grid-template-columns: 112px minmax(0, 1fr); }
  .top:not(.home) .intro { padding: 24px 0 48px; }
  .top:not(.home) .intro h1 { font-size: min(52px, calc((100vw - 48px) / 7)); }
  .foot .wrap { grid-template-columns: auto 1fr; row-gap: 20px; }
  .foot .logo { grid-column: 1; }
  .foot nav { grid-column: 2; justify-content: flex-end; }
  .foot p { grid-column: 1 / -1; text-align: left; }
}
/* Narrow phones: logo and both nav links must fit inside the gutters on one line */
@media (max-width: 389px) {
  .masthead { gap: 16px; }
  .masthead .logo img { height: 22px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav a { padding: 8px 0; }   /* tap target stays ~38px tall */
}
@media (max-width: 359px) {
  .masthead { gap: 10px; }
  .masthead .logo img { height: 20px; }
  .nav { gap: 10px; font-size: 13px; }
  .nav a { padding: 10px 0; }   /* tap target stays ~40px tall at the smaller size */
}

/* ---------- Products: icon left of the title (desktop and tablet) ----------
   Icon and two-line title form one lockup. The icon is sized and placed from Manrope's
   metrics so its top meets the cap height of "Svampguiden" and its bottom the baseline of
   "Nordic Mushrooms": with line-height 1.04, cap top sits 0.183em below the block top and the
   second baseline 1.943em below it, so the icon is 1.76em tall, offset 0.183em.
   The lede and links return to the body's left edge (under the icon), so the text still
   lines up with the Company facts below. Under 900px the icon stays on top. */
@media (min-width: 901px) {
  .row--feature .row-body {
    --t: clamp(36px, 3.6vw, 52px);              /* = .title font-size */
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: calc(var(--t) * 0.5);
  }
  .row--feature .app-icon {
    grid-column: 1; grid-row: 1;
    width: calc(var(--t) * 1.76); height: calc(var(--t) * 1.76);
    margin: calc(var(--t) * 0.183) 0 0;
    border-radius: 22%;
  }
  .row--feature .title { grid-column: 2; grid-row: 1; }
  .row--feature .lede,
  .row--feature .links { grid-column: 1 / -1; }
  .row--feature .lede { max-width: 24em; }
}

/* ---------- Pattern "seedlings in wind" ----------
   Home header: the tall field on the right from 1024px, the low band above the headline below that.
   The footer band is on every page. The SVGs are inline and draw in currentColor, so the tone is set here. */
:root { --pat-top: #3A2549; --pat-foot: #35253F; }
@media (prefers-color-scheme: dark) { :root { --pat-top: #221628; --pat-foot: #281C31; } }
.top.home { position: relative; overflow: hidden; isolation: isolate; }
.top.home .top-inner { position: relative; z-index: 1; }   /* text above the pattern */
.pat { position: absolute; bottom: 0; display: block; max-width: none; pointer-events: none; }
.pat-hero, .intro-pat { color: var(--pat-top); }
.pat-hero { right: 0; z-index: 0; height: min(560px, 74%); width: auto; }
.intro-pat { display: none; }
/* The spec says below 900px; between 901 and ~1010px the tall field runs into the headline, so the band takes over below 1024px. */
@media (max-width: 1023px) {
  .pat-hero { display: none; }
  .top.home .intro { position: relative; }
  .intro-pat { display: block; right: calc(-1 * var(--gutter)); bottom: calc(100% + 20px); height: 190px; width: auto; }
}

/* Footer: a small band flush with the window's left edge (x = 0 at every width), inside the existing footer
   box, so the footer keeps its height. At 40px (scale 0.2) the ink sits in the bottom ~29px: below the logo
   and footer text on desktop, and below the copyright line on mobile. Its tall swell is in the first
   ~110px; the seeds fade out by ~175px. It sits behind the text (.wrap is z 1). */
.foot { position: relative; overflow: hidden; }
.foot .wrap { position: relative; z-index: 1; }
.pat-foot { left: 0; bottom: 0; z-index: 0; height: 40px; width: auto; color: var(--pat-foot); }

/* Contact: Turnstile's flexible widget is never narrower than 300px. Below 348px (300 + two 24px gutters) the
   column is narrower than that, so the box keeps 300px and uses the gutters: it shifts left only as far as needed
   (4px at 320) so it ends inside the viewport. */
@media (max-width: 347px) { .cf-turnstile { width: 300px; margin-left: min(0px, calc(100vw - 324px)); } }
