/* DashSuite home page, DIDHECLICK family (Ardoise base): slate neutrals, night ink, tilted squares.
   Actions in ink; DashSuite blue kept for the wordmark, link underlines and hover; product colors on tiles. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --field: #e6eaf1;
  --ink: #161b24;
  --muted: #505a68;
  --line: #c7cfdb;
  --night: #12141c;
  --suite: #2563eb;
  --suite-line: #2563eb;
  --link: #12141c;
  --focus: #12141c;
  --btn-bg: #12141c;
  --btn-fg: #ffffff;
  --btn-hover-bg: #2563eb;
  --btn-hover-fg: #ffffff;
  --marker: #12141c;

  /* Product colors from the DashSuite logos: tiles hold ink glyphs, text tones are darkened for AA. */
  --menu-tile: #f59e0b;
  --kitchen-tile: #ef4444;
  --stock-tile: #10b981;
  --tile-ink: #12141c;
  --menu-text: #b45309;
  --kitchen-text: #b91c1c;
  --stock-text: #047857;

  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  --step-3: clamp(2.25rem, 1.1rem + 5.6vw, 5.25rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 2.75rem + 5vw, 7.5rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 78rem;
  --radius-btn: 12px;
  --squircle: 0.75rem;
  --tilt: -4deg;
  --dur: 150ms;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12141c;
    --field: #1b1e2a;
    --ink: #eceef3;
    --muted: #a3a9bc;
    --line: #343848;
    --night: #1b1e2a;
    --suite: #93c5fd;
    --suite-line: #93c5fd;
    --link: #93c5fd;
    --focus: #93c5fd;
    --btn-bg: #eceef3;
    --btn-fg: #12141c;
    --btn-hover-bg: #93c5fd;
    --btn-hover-fg: #12141c;
    --marker: #eceef3;
    --menu-text: #fbbf24;
    --kitchen-text: #f87171;
    --stock-text: #34d399;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12141c;
  --field: #1b1e2a;
  --ink: #eceef3;
  --muted: #a3a9bc;
  --line: #343848;
  --night: #1b1e2a;
  --suite: #93c5fd;
  --suite-line: #93c5fd;
  --link: #93c5fd;
  --focus: #93c5fd;
  --btn-bg: #eceef3;
  --btn-fg: #12141c;
  --btn-hover-bg: #93c5fd;
  --btn-hover-fg: #12141c;
  --marker: #eceef3;
  --menu-text: #fbbf24;
  --kitchen-text: #f87171;
  --stock-text: #34d399;
  color-scheme: dark;
}

/* Night panels re-scope the tokens, so every component inside reads correctly in both themes. */
.night {
  --ink: #f1f3f7;
  --muted: #a3a9bc;
  --line: #3a3e4e;
  --suite: #93c5fd;
  --suite-line: #93c5fd;
  --link: #f1f3f7;
  --focus: #93c5fd;
  --btn-bg: #eceef3;
  --btn-fg: #12141c;
  --btn-hover-bg: #93c5fd;
  --btn-hover-fg: #12141c;
  --menu-text: #fbbf24;
  --kitchen-text: #f87171;
  --stock-text: #34d399;
  background: var(--night);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
img, svg { display: block; }

a { color: var(--link); text-underline-offset: 0.22em; text-decoration-thickness: 2px; text-decoration-color: var(--suite-line); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  padding: 0.75rem 1rem; background: var(--btn-bg); color: var(--btn-fg); border-radius: 8px;
}
.skip:focus { top: 0.5rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }


/* Header */
.header-row { display: flex; align-items: center; gap: var(--space-2) var(--space-3); flex-wrap: wrap; padding-block: var(--space-2); }
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }
.brand b { font-weight: 800; color: var(--suite); }
.nav { margin-left: auto; }
.nav ul { display: flex; list-style: none; padding: 0; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.875rem;
  font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.nav a:hover { text-decoration: underline; text-decoration-color: var(--suite-line); }
.tools { display: flex; align-items: center; gap: 0.5rem; }
.brand + .tools { margin-left: auto; }
.lang {
  min-height: 44px; padding: 0 0.75rem; border: 1.5px solid var(--line); border-radius: var(--radius-btn);
  background: transparent; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600;
}
/* Language menu: a disclosure of real links, one static page per language */
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: ""; width: 0.375rem; height: 0.375rem; margin-top: -0.2rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.lang-menu[open] summary::after { margin-top: 0.2rem; transform: rotate(-135deg); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 5; min-width: 11rem;
  list-style: none; margin: 0; padding: 0.375rem;
  background: var(--night); border: 1.5px solid var(--line); border-radius: var(--radius-btn);
}
.lang-list a {
  display: flex; align-items: center; min-height: 44px; padding: 0 0.75rem; border-radius: 8px;
  color: var(--ink); font-size: 1rem; font-weight: 500; text-decoration: none;
}
.lang-list a:hover { text-decoration: underline; text-decoration-color: var(--suite-line); }
.lang-list a[aria-current="page"] { font-weight: 700; }
.theme-toggle {
  min-height: 44px; padding: 0 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-btn);
  background: transparent; color: var(--ink); font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
}
.theme-short { display: none; }
.when-dark { display: none; }
:root[data-theme="dark"] .when-dark { display: inline; }
:root[data-theme="dark"] .when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .when-dark { display: inline; }
  :root:not([data-theme="light"]) .when-light { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: heavy sentence-case headline, lead and actions left, the suite index on the right */
.hero { padding-block: var(--space-5) var(--space-6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5) var(--gutter); }
.hero-title { font-size: var(--step-3); font-weight: 800; line-height: 1; letter-spacing: -0.03em; max-width: 13ch; text-wrap: balance; }
.lead { margin-top: var(--space-4); font-size: var(--step-1); line-height: 1.5; max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin-top: var(--space-4); }
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg); border-radius: var(--radius-btn);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* The suite index: one row per module, tilted tile, name, status */
.suite { list-style: none; padding: 0; border-bottom: 1px solid var(--line); align-self: end; }
.suite li { border-top: 1px solid var(--line); }
.suite a {
  display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; column-gap: var(--space-2);
  min-height: 4.5rem; padding-block: 0.75rem; color: var(--ink); text-decoration: none;
}
.suite a:hover .name { text-decoration: underline; text-decoration-color: var(--suite-line); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.suite .tile { width: 2.75rem; height: 2.75rem; border-radius: 0.625rem; }
.suite .tile svg { width: 1.75rem; height: 1.75rem; }
.suite .name { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }

/* Tiles: product squares, tilted like the Subito Flash mark */
.tile {
  display: grid; place-items: center; flex: none;
  width: 4rem; height: 4rem; border-radius: var(--squircle);
  color: var(--tile-ink); transform: rotate(var(--tilt));
}
.tile svg { width: 2.5rem; height: 2.5rem; }
.t-menu { background: var(--menu-tile); }
.t-kitchen { background: var(--kitchen-tile); }
.t-stock { background: var(--stock-tile); }
.c-menu { color: var(--menu-text); }
.c-kitchen { color: var(--kitchen-text); }
.c-stock { color: var(--stock-text); }

/* Status: filled for available, dashed for coming soon, so it never relies on color */
.status {
  display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 0.625rem;
  border: 1.5px solid var(--ink); border-radius: 999px;
  font-size: var(--step--1); font-weight: 600; line-height: 1; white-space: nowrap; color: var(--ink);
}
.status-soon { border-style: dashed; border-color: var(--muted); color: var(--muted); }

/* Sections */
.section { padding-block: var(--space-6); }
.section-field { background: var(--field); }
.head { max-width: 46rem; }
.head h2 { font-size: var(--step-2); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.head p { margin-top: var(--space-2); color: var(--muted); max-width: 40rem; }

/* Modules: a sheet of rows */
.modules { list-style: none; padding: 0; margin-top: var(--space-5); border-bottom: 1px solid var(--line); }
.module { display: grid; gap: var(--space-3) var(--gutter); padding-block: var(--space-4); border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.module-id { display: flex; align-items: center; gap: var(--space-3); }
.module h3 { font-size: var(--step-2); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.module-id .status { margin-top: 0.5rem; }
.module-desc { font-size: var(--step-1); line-height: 1.5; max-width: 36rem; }
.features { list-style: none; padding: 0; margin-top: var(--space-3); display: grid; gap: 0.5rem var(--space-3); }
.features li { position: relative; padding-left: 1.5rem; color: var(--muted); }
.features li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.625rem; height: 0.625rem;
  border-radius: 3px; background: currentColor; transform: rotate(var(--tilt));
}
.features.f-menu li::before { color: var(--menu-tile); }
.features.f-kitchen li::before { color: var(--kitchen-tile); }
.features.f-stock li::before { color: var(--stock-tile); }

/* Advantages: definition list, small tilted marker before each term */
.advantages { display: grid; gap: var(--space-4) var(--gutter); margin-top: var(--space-5); }
.advantages > div { position: relative; padding-left: 1.75rem; }
.advantages > div::before {
  content: ""; position: absolute; left: 0; top: 0.45rem; width: 0.875rem; height: 0.875rem;
  border-radius: 4px; background: var(--marker); transform: rotate(var(--tilt));
}
.advantages dt { font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.advantages dd { margin-top: 0.375rem; color: var(--muted); max-width: 32rem; }

/* Closing */
.closing { padding-block: var(--space-6); }
.closing-title { font-size: var(--step-3); font-weight: 800; line-height: 1; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
.closing-body { margin-top: var(--space-4); display: grid; gap: var(--space-3); max-width: 38rem; font-size: var(--step-1); line-height: 1.5; }
.closing-body .actions { margin-top: 0; }

/* Night masthead: header and hero read as one band */
.masthead + main .hero { padding-top: var(--space-4); }

/* Footer */
.site-footer { padding-block: var(--space-4); border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); list-style: none; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.copy { color: var(--muted); font-size: var(--step--1); }
.address { white-space: nowrap; }
.footer-links a[aria-current="page"] { font-weight: 700; text-decoration-color: currentColor; }

@media (max-width: 63.99rem) {
  .header-row { column-gap: 0.5rem; }
  .nav-extra { display: none; }
  .nav { order: 3; margin-left: 0; width: 100%; }
  .nav ul { justify-content: space-between; margin-inline: -0.5rem; }
  .nav a { padding-inline: 0.5rem; font-size: 0.9375rem; }
  .tools { margin-left: auto; }
}

@media (max-width: 47.99rem) {
  .brand { font-size: 1.25rem; }
  .lang { padding: 0 0.375rem; }
  .theme-toggle { padding: 0 0.625rem; }
  .module-id .tile { width: 3.25rem; height: 3.25rem; }
  .module-id .tile svg { width: 2rem; height: 2rem; }
}

@media (max-width: 24.99rem) {
  .theme-long { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .theme-short { display: inline; }
}

@media (max-width: 24rem) {
  .suite a { grid-template-columns: 3rem minmax(0, 1fr); row-gap: 0.375rem; }
  .suite .status { grid-column: 2; justify-self: start; }
}

@media (min-width: 48rem) {
  .advantages { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: end; }
  .module { grid-template-columns: 5fr 7fr; align-items: start; }
  .advantages { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Legal pages: one reading column, same header and footer as the home page */
.page { padding-block: var(--space-5) var(--space-6); }
.page h1 { font-size: var(--step-2); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: var(--space-4); font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.prose p, .prose ul { margin-top: var(--space-2); }
.prose ul { padding-left: 1.25rem; }
.updated { margin-top: var(--space-2); color: var(--muted); font-size: var(--step--1); }
