/* SamMote — shared stylesheet. System fonts only, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #f4f6fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --border: rgba(11, 12, 16, 0.1);
  --text: #0b0c10;
  --text-2: rgba(11, 12, 16, 0.7);
  --accent: #0a66e0;
  --accent-2: #5b4be0;
  --glow-a: rgba(42, 128, 185, 0.2);
  --glow-b: rgba(26, 187, 156, 0.16);
  --glow-c: rgba(91, 75, 224, 0.1);
  --shadow: 0 1px 2px rgba(15, 20, 40, 0.05), 0 10px 30px rgba(15, 20, 40, 0.07);
  --pro-a: #ffd66b;
  --pro-b: #ff8a3d;
  --pro-text: #1a1204;
  --brand-a: #2a80b9;
  --brand-b: #1abb9c;
  --radius-s: 12px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-xl: 28px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07080c;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-solid: #12141b;
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-2: rgba(255, 255, 255, 0.74);
    --accent: #4da3ff;
    --accent-2: #8b7cff;
    --glow-a: rgba(166, 58, 18, 0.34);
    --glow-b: rgba(14, 63, 77, 0.6);
    --glow-c: rgba(42, 14, 54, 0.75);
    --shadow: none;
  }
}

/* Language blocks: English unless the script picked French. */
html:not([data-lang="fr"]) [data-l="fr"],
html[data-lang="fr"] [data-l="en"] {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 0% 0%, var(--glow-c), transparent 70%),
    radial-gradient(50vmax 40vmax at 100% 10%, var(--glow-b), transparent 70%),
    radial-gradient(60vmax 45vmax at 40% 105%, var(--glow-a), transparent 70%);
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-round);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.85rem);
  font-weight: 750;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

ul,
ol {
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.35em;
}

strong {
  font-weight: 650;
}

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

.narrow {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Header */
.site-header {
  padding: 14px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-round);
  font-weight: 750;
  font-size: 1.15rem;
  text-decoration: none;
  margin-right: auto;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  order: 3;
  width: 100%;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 560;
  font-size: 0.95rem;
}

.site-nav a:hover {
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

@media (min-width: 640px) {
  .site-nav {
    order: 0;
    width: auto;
  }
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}

.lang-switch a {
  min-width: 44px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.lang-switch a[aria-current="true"] {
  background: var(--text);
  color: var(--bg);
}

/* Hero: always on the dark "Aurore" ambience, like the app's welcome screen */
.hero {
  position: relative;
  overflow: hidden;
  margin: 8px 0 40px;
  padding: 44px 24px 40px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)),
    radial-gradient(55% 45% at 55% 45%, #a63a12 0%, rgba(166, 58, 18, 0) 75%),
    radial-gradient(45% 55% at 0% 50%, #5a1e14 0%, rgba(90, 30, 20, 0) 75%),
    radial-gradient(45% 55% at 100% 50%, #0e3f4d 0%, rgba(14, 63, 77, 0) 75%),
    radial-gradient(60% 45% at 50% 0%, #2a0e36 0%, rgba(42, 14, 54, 0) 75%),
    radial-gradient(45% 45% at 100% 0%, #0a1830 0%, rgba(10, 24, 48, 0) 75%),
    radial-gradient(60% 45% at 50% 100%, #0f3b3a 0%, rgba(15, 59, 58, 0) 75%),
    #0a0d16;
}

.hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
}

.hero h1 {
  margin-bottom: 0.25em;
}

.hero .tagline {
  font-family: var(--font-round);
  font-size: clamp(1.15rem, 3.4vw, 1.45rem);
  font-weight: 600;
  max-width: 32em;
  margin: 0 auto 0.6em;
}

.hero .sub {
  color: rgba(255, 255, 255, 0.86);
  max-width: 34em;
  margin: 0 auto 1.6em;
}

.glass-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 28px;
}

.glass-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.glass-btn svg {
  width: 26px;
  height: 26px;
}

@media (min-width: 480px) {
  .glass-btn {
    width: 72px;
    height: 72px;
  }
}

/* App Store button: text only, no logo */
.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 26px 11px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  line-height: 1.15;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}

.store-btn:hover {
  transform: scale(1.03);
}

.store-btn:active {
  transform: scale(0.97);
}

.store-btn .small {
  font-size: 0.75rem;
  font-weight: 500;
}

.store-btn .big {
  font-family: var(--font-round);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.store-btn:focus-visible {
  outline-color: #ffffff;
}

.hero .requires {
  margin: 1.2em 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Sections and cards */
.section {
  margin: 0 0 48px;
}

.section > .lead {
  color: var(--text-2);
  max-width: 40em;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card {
  padding: 20px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--text-2);
}

.chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

.chip svg {
  width: 22px;
  height: 22px;
}

.chip.pro {
  color: var(--pro-text);
  background: linear-gradient(135deg, var(--pro-a), var(--pro-b));
}

.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  vertical-align: 0.15em;
  color: var(--pro-text);
  background: linear-gradient(135deg, var(--pro-a), var(--pro-b));
}

.plans {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.plan ul {
  color: var(--text-2);
}

.plan .note {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.pill-link:hover {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.pill-link.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .pill-link.primary {
    color: #07080c;
  }
}

/* Prose pages */
.page-head {
  margin: 16px 0 28px;
}

.page-head p {
  color: var(--text-2);
}

.updated {
  font-size: 0.9rem;
}

.prose h2 {
  margin-top: 1.6em;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.3em;
}

.prose > section:first-child h2,
.prose h2:first-child {
  margin-top: 0;
}

.summary-box {
  padding: 20px 20px 4px;
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
  margin-bottom: 28px;
}

.summary-box ol {
  padding-left: 1.2em;
}

.toc {
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.toc ol {
  columns: 2 220px;
  column-gap: 24px;
}

.toc li {
  break-inside: avoid;
}

.ui {
  font-weight: 650;
}

.steps li::marker {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--accent);
}

/* FAQ */
.faq-group {
  margin: 0 0 32px;
}

.faq-group h2 {
  font-size: 1.3rem;
}

details {
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  margin: 0 0 8px;
  scroll-margin-top: 16px;
}

summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 14px 48px 14px 18px;
  font-weight: 650;
  border-radius: var(--radius-m);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

details[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

details > div {
  padding: 0 18px 4px;
}

details > div p,
details > div li {
  color: var(--text-2);
}

details > div strong,
details > div .ui {
  color: var(--text);
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-2);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 14px;
}

.site-footer nav a {
  color: var(--text);
  font-weight: 560;
}

.site-footer p {
  margin: 0 0 0.6em;
}

.center {
  text-align: center;
}

@media (min-width: 720px) {
  :root {
    --gutter: 24px;
  }
  .hero {
    padding: 64px 40px 56px;
  }
  .card {
    padding: 24px;
  }
}

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

.prose > section.card {
  margin: 0 0 28px;
}
