/* ============================================================
   Oraclea — home and Oraclea pages, style 6 « Cielo Vero »
   (07/10/26, from the app's design boards d6)
   The home (mainModule/views/home.php) and the pages of
   pagesModule (/helpc/…, /404/, /maintenance/) load only
   fonts.css + this file. Tokens: cielo_tokens.css.
   Phones first (360 px), then wider screens (640, 960 px).
   ============================================================ */
@import url('cielo_tokens.css');

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--sky);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  background: transparent;           /* the sky is html + body::before */
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* The photographed sky. Fixed to the viewport (short pages): a
   pseudo-element, because background-attachment: fixed is ignored
   by iOS Safari. 100lvh: the photo does not jump when the phone's
   toolbar hides. */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  pointer-events: none;
  background: var(--sky) url('../images/cielo/stelle_schermo.jpg') center top / cover no-repeat;
}
/* Long pages: <body class="cielo-pagina"> — the tall photo scrolls with the text */
body.cielo-pagina::before {
  position: absolute;
  bottom: 0;
  height: auto;
  background-image: url('../images/cielo/stelle_pagina.jpg');
  background-size: 100% auto;
  background-repeat: repeat-y;
}

/* The old animated canvas: the sky is now the photograph */
#stars { display: none; }

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

a { color: var(--data); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--data); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(233, 184, 114, 0.35); color: var(--text); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--text); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Shared pieces of style 6 (also for the new home, step 4) ── */

/* Glass panel over the stars */
.panel {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 16px;
}

/* Eyebrow: 11 px, spaced capitals in sunlight */
.eyebrow, .logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--sun);
}
/* The logo: our Sun, small, before the name (no ✦ glyph) */
.logo-badge__sun {
  width: 28px;
  height: 28px;
  margin: -4px 0 -4px -6px;            /* the disk is 60% of the frame: keep the text close */
  filter: drop-shadow(0 0 6px rgba(255, 138, 42, 0.6));
}
/* Section label: 10.5 px, spaced capitals, grey */
.section-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
}
/* Numbers and data */
.data { color: var(--data); font-variant-numeric: tabular-nums; }

/* Text link with chevron (add the chevron svg inside, 14 px) */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--data);
}
.link-more svg { width: 14px; height: 14px; }

/* Chips: 32 px, radius 16; .chip--on is the active one */
.chip {
  display: inline-flex;
  align-items: center;
  height: var(--h-chip);
  padding: 0 14px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
}
.chip--on { background: var(--sun-soft); border-color: var(--sun); color: var(--sun); }

/* Celestial bodies: our images in images/cielo/, base 60 px.
   The visible disk of the Sun is 1.5 times a planet's: sole.webp keeps
   its glow inside the file, so its disk is 60% of the frame (192 of 320 px)
   while the planets fill 94% (300 of 320). Sun frame = 2.34375 × a planet
   frame (1.5 × 0.9375 / 0.6). */
.celestial { width: var(--size, 60px); height: var(--size, 60px); object-fit: contain; flex-shrink: 0; }
.celestial--sun     { --size: 141px; filter: var(--glow-sole); }
.celestial--moon    { filter: var(--glow-luna); }
.celestial--phase   { --size: 46px; filter: var(--glow-fase); }
.celestial--mercury { filter: var(--glow-mercurio); }
.celestial--venus   { filter: var(--glow-venere); }
.celestial--mars    { filter: var(--glow-marte); }
.celestial--jupiter { filter: var(--glow-giove); }
.celestial--saturn  { filter: var(--glow-saturno); }
.celestial--uranus  { filter: var(--glow-urano); }
.celestial--neptune { filter: var(--glow-nettuno); }
.celestial--pluto   { filter: var(--glow-plutone); }

/* Constellations in SVG: lines and stars, never glyphs.
   <svg class="constellation"> with <path class="constellation__line">,
   <circle class="constellation__star">, two halo circles and <text>. */
.constellation { overflow: visible; }
.constellation__line { fill: none; stroke: var(--text); stroke-opacity: 0.45; stroke-width: 0.75; }
.constellation__star { fill: #FFFFFF; }
.constellation__halo-near { fill: #DCE6FF; opacity: 0.2; }
.constellation__halo-far  { fill: #DCE6FF; opacity: 0.07; }
.constellation__name { fill: var(--text-2); font-family: var(--sans); font-size: 9px; }

/* ── Buttons: 52 px, radius 26 ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h-btn);
  padding: 0 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--on-sun);
  font-weight: 600;
  box-shadow: var(--glow-sun);
}
.btn-primary:hover {
  background: var(--sun-hover);
  border-color: var(--sun-hover);
  color: var(--on-sun);
  box-shadow: 0 0 28px rgba(233, 184, 114, 0.45);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

/* A store button without its link yet (« — presto ») */
.btn[aria-disabled="true"] { opacity: 0.55; cursor: default; box-shadow: none; }
.btn-primary[aria-disabled="true"]:hover { background: var(--sun); border-color: var(--sun); }
.btn-secondary[aria-disabled="true"]:hover { background: transparent; border-color: var(--line-2); }

/* ── HOME: hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 16px 48px;
  text-align: center;
}

.hero-content { position: relative; z-index: 1; width: 100%; max-width: 560px; }

.hero .logo-badge { margin-bottom: 16px; }

h1 {
  font-size: var(--fs-title);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.tagline {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.5em;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text-2);
}

.hero-sub {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 480px;
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
}

.trial-badge { color: var(--sun); font-size: var(--fs-small); font-weight: 500; }

.hero .eyebrow { margin-bottom: 14px; }

/* ── HOME: top bar ───────────────────────────────────────── */
.home-bar { position: relative; z-index: 2; padding: 12px 0 0; }
.home-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-bar .logo-badge { min-height: 44px; }
.home-bar .logo-badge:hover { color: var(--sun-hover); }
.home-bar__account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.home-bar__account svg { width: 18px; height: 18px; color: var(--sun); }
.home-bar__account:hover { color: var(--text); border-color: var(--sun-line); }

/* ── HOME: the sky of the hero ───────────────────────────────
   As in the app's « solar system » boards: three thin elliptic
   orbits (blue, white, gold), our Sun in the middle with its glow,
   a visible disk 1.5 times the other bodies', the Moon and four
   planets on the orbits. Everything is in % of the 390 × 260 box
   (the viewBox of the orbits), so the drawing only scales: at every
   width the Sun's disk stays 10 units inside the near orbit
   (ry 44, disk radius 33.75) and away from the bodies. Positions are
   on the ellipses (W4, 07/10/26: .claude/tmp/oraclea_d6app/w4/geometria.php). */
.hero-sky {
  --b: 12.3077%;                      /* one body frame = 48 of the 390 units */
  position: relative;
  z-index: 1;
  order: -1;                          /* phones: the sky first, then the words */
  width: 100%;
  max-width: 390px;
  aspect-ratio: 390 / 260;
  flex-shrink: 0;
  background: radial-gradient(closest-side, rgba(255, 138, 42, 0.13), rgba(255, 138, 42, 0) 70%) center / 60% 90% no-repeat;
}
.hero-sky__orbits { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-sky__orbit { fill: none; vector-effect: non-scaling-stroke; stroke-width: 0.8; }
.hero-sky__orbit--far  { stroke: var(--data); stroke-opacity: 0.3; }
.hero-sky__orbit--mid  { stroke: var(--text); stroke-opacity: 0.25; }
.hero-sky__orbit--near { stroke: var(--sun);  stroke-opacity: 0.5; }

.hero-sky__sun,
.hero-sky__body {
  position: absolute;
  height: auto;                       /* square: width/height 320 in the markup */
  transform: translate(-50%, -50%);
}
.hero-sky__sun  { width: calc(var(--b) * 2.34375); left: 50%; top: 50%; }   /* disk 1.5 × */
.hero-sky__body { width: var(--b); }
.hero-sky__body--moon    { left: 72.56%; top: 50%; }
.hero-sky__body--venus   { left: 28.53%; top: 31.17%; }
.hero-sky__body--mars    { left: 32.33%; top: 70.87%; }
.hero-sky__body--jupiter { left: 85.72%; top: 30.6%; }
.hero-sky__body--saturn  { left: 7.09%;  top: 55.95%; }

/* A slow breath of the Sun's glow (stopped by prefers-reduced-motion) */
.hero-sky__sun { animation: sun-breath 6s ease-in-out infinite; }
@keyframes sun-breath {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(255, 138, 42, 0.6)); }
  50%      { filter: drop-shadow(0 0 22px rgba(255, 138, 42, 0.75)); }
}

/* ── HOME: sections ──────────────────────────────────────── */
section { padding: 48px 0; }

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.feature-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 20px 16px;
}

/* The picture on top of each card: the same height for all four */
.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 132px;
  margin-bottom: 16px;
}
/* Tarot: the card back of the boards (« Dorso »), a small card */
.tarot-back { width: 74px; height: 124px; overflow: visible; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); }
.tarot-back__card { fill: #0C111B; stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
/* Moon: today's Moon of the app, 68 px with its glow */
.feature-visual__moon { --size: 68px; filter: drop-shadow(0 0 14px rgba(207, 211, 218, 0.35)); }
/* Astrology: the constellation of Leo, as in the boards */
.feature-visual__leo { width: 100%; max-width: 212px; height: auto; aspect-ratio: 240 / 150; }
/* Chakra: seven points on one line, the heart (of the day) lit in green */
.chakra-line { width: 50px; height: 124px; overflow: visible; }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 6px;
}
.feature-card p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

.steps {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}

.step {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 20px 16px;
  text-align: left;
}

.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--sun);
  font-variant-numeric: tabular-nums;
  margin-bottom: 10px;
}
.step h3 { font-size: 1.25rem; font-weight: 500; line-height: 1.2; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.55; }

.step-arrow { display: none; width: 24px; height: 24px; flex-shrink: 0; color: var(--sun); opacity: 0.7; align-self: center; }

/* ── HOME: the sky of the app (planets and phases) ───────── */
.sky__eyebrow { display: flex; justify-content: center; margin-bottom: 12px; }
.sky__panels { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sky__panel { padding: 18px 12px 16px; }
.sky__panel .section-label { text-align: center; margin-bottom: 14px; }
.sky__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 4px;
}
.sky__list--planets { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sky__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-2);
}
.sky__item .celestial { max-width: none; }
/* A planet P = 72% of its column (at most 52 px); every picture sits in
   the same band 1.5 P high, so the names stay on one line. The Sun's frame
   is 2.34375 P (visible disk 1.5 ×), its negative margins keep the band;
   its disk stays 12+ px away from the next planet down to 320 px.
   Vertical % margins are % of the column width, like the widths. */
.sky__list--planets .celestial { width: min(72%, 52px); height: auto; margin: min(18%, 13px) 0; }
.sky__list--planets .sky__item--sun .celestial {
  width: min(168.75%, 121.875px);
  margin: calc(-1 * min(30.375%, 21.9375px)) 0;
}
.sky__list--phases .celestial { --size: 40px; }

.final-cta { text-align: center; padding-bottom: 64px; }
.final-cta p { color: var(--text-2); margin-bottom: 24px; }
/* Visible disk 60 px (84 from 960 px): as the Sun of the hero */
.final-cta__sun { --size: 100px; margin: -8px auto 4px; }

/* Fade-in on scroll: oraclea.js puts .reveal on <html> and .is-visible on each block */
.reveal .feature-card, .reveal .step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal .feature-card.is-visible, .reveal .step.is-visible { opacity: 1; transform: none; }

/* ── FOOTER (home and pages) ─────────────────────────────── */
footer {
  position: relative;
  border-top: 1px solid var(--hair);
  background: rgba(4, 6, 10, 0.55);
  padding: 20px 0 calc(24px + env(safe-area-inset-bottom));
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 20px;
  margin-bottom: 8px;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  font-size: var(--fs-small);
}
.footer-links a:hover { color: var(--text); }

.copyright { color: var(--text-2); font-size: 12px; opacity: 0.75; }

/* ── CONTENT PAGES (modules/pagesModule) ─────────────────────
   /helpc/…, /404/, /maintenance/: the same sky, panels and type,
   around a readable column. Scoped under body.pg. */
.pg {
  display: flex;
  flex-direction: column;
}

.pg-header, .pg-main, .pg footer { position: relative; z-index: 1; }

.pg-header { padding: 12px 0 0; }
.pg-header .logo-badge { min-height: 44px; }
.pg-header .logo-badge:hover { color: var(--sun-hover); }

.pg-main { flex: 1; padding: 20px 0 56px; }
.pg-container { max-width: 760px; }

.pg h1 { margin-bottom: 12px; }
.pg h2 {
  text-align: left;
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin: 32px 0 10px;
}
.pg h2:first-child, .pg .pg-card__title { margin-top: 0; }
.pg .pg-card__title { font-size: 1.25rem; font-weight: 500; margin-bottom: 12px; }

.pg-lead { color: var(--text-2); font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
.pg-main p { margin-bottom: 12px; }
.pg-main p:last-child { margin-bottom: 0; }
.pg-main ul { margin: 0 0 14px 1.2em; }
.pg-main li { margin-bottom: 6px; }
.pg-main li::marker { color: var(--sun); }
.pg-main strong { color: var(--text); font-weight: 600; }

.pg-card {
  background: var(--panel);
  border: 1px solid var(--hair);
  border-radius: var(--r-panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  padding: 20px 16px;
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.pg-card--quiet { background: rgba(11, 14, 20, 0.5); padding: 16px; }

.pg-muted   { color: var(--text-2); }
.pg-small   { font-size: var(--fs-small); }
.pg-updated {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--sun);
}
.pg-todo {
  background: var(--sun-soft);
  border: 1px dashed var(--sun);
  color: var(--sun);
  border-radius: 6px;
  padding: 0 6px;
  font-weight: 500;
}

.pg-links { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.pg-links--center { align-items: center; }
.pg-links .btn { width: 100%; }
.pg-after-links { margin-top: 20px; }
.pg-main ul.pg-plain { list-style: none; margin-left: 0; }

/* Buttons are also <button>s here, which do not inherit the font on their own */
.pg button.btn { font-family: inherit; }
.pg .btn[disabled] { opacity: 0.6; cursor: wait; box-shadow: none; }

/* Policy text */
.pg-prose code { font-family: ui-monospace, 'Cascadia Code', monospace; color: var(--data); font-size: 0.9em; }
.pg-table-wrap {
  margin: 14px 0 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r-field);
  overflow: hidden;
  background: rgba(4, 6, 10, 0.35);
}
.pg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.pg-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.pg-table tr:last-child td { border-bottom: none; }
/* Phones: one block per row, the column name above each value */
.pg-table thead { display: none; }
.pg-table, .pg-table tbody, .pg-table tr, .pg-table td { display: block; width: 100%; }
.pg-table tr { border-bottom: 1px solid var(--hair); padding: 6px 0; }
.pg-table tr:last-child { border-bottom: none; }
.pg-table td { border-bottom: none; padding: 6px 14px; }
.pg-table td::before {
  content: attr(data-label);
  display: block;
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* Forms: label 12 px grey above, field 48 px, radius 10 */
.pg-form { display: grid; gap: 18px; }
.pg-field { display: grid; gap: 6px; }
.pg-field label { font-size: var(--fs-label); color: var(--text-2); }
.pg-field input, .pg-field select, .pg-field textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--h-field);
  padding: 11px 14px;
  background: var(--field-bg);
  color: var(--text);
  border: 1px solid var(--field-line);
  border-radius: var(--r-field);
  font-family: inherit;
  font-size: 16px;              /* 16 px on phones: iOS does not zoom into the field */
  line-height: 1.5;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pg-field input::placeholder, .pg-field textarea::placeholder { color: var(--text-2); }
.pg-field textarea { min-height: 180px; resize: vertical; }
.pg-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23E9B872' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.pg-field select option { background: #0B0E14; color: var(--text); }
.pg-field input:focus, .pg-field select:focus, .pg-field textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 3px var(--sun-soft);
}
.pg-field [aria-invalid="true"] { border-color: var(--err); }
.pg-hint { font-size: var(--fs-label); color: var(--text-2); }
.pg-form .btn { justify-content: center; width: 100%; }

/* Flash messages (classes set in config_app.php: msg msg--success …) */
.pg .msg {
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
.pg .msg > div + div { margin-top: 4px; }
.pg .msg--success { background: var(--ok-soft);   border-color: var(--ok-line);   color: var(--ok); }
.pg .msg--error   { background: var(--err-soft);  border-color: var(--err-line);  color: var(--err); }
.pg .msg--warning { background: var(--sun-soft);  border-color: var(--sun-line);  color: var(--sun); }
.pg .msg--info    { background: var(--data-soft); border-color: var(--data-line); color: var(--data); }

/* The signed-in user's messages */
.pg-main ul.pg-tickets { list-style: none; margin: 0; }
.pg-tickets li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px; margin-bottom: 10px; }
.pg-tickets__title { flex: 1 1 200px; }
.pg-tickets .pg-small { flex-basis: 100%; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pg-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--r-chip);
  border: 1px solid var(--sun);
  background: var(--sun-soft);
  color: var(--sun);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* 404 / maintenance */
.pg-center { text-align: center; padding-top: 16px; }
.pg-center .pg-lead { margin-left: auto; margin-right: auto; max-width: 460px; }
.pg-big {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 20vw, 7.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--sun);
  text-shadow: 0 0 32px rgba(233, 184, 114, 0.35);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
/* 404: the zero is the full Moon (an image, never a glyph) */
.pg-big--moon { display: flex; align-items: center; justify-content: center; gap: 0.04em; }
.pg-big__moon { --size: 0.78em; max-width: none; }
/* Maintenance: one phase of the Moon */
.pg-moon { display: flex; justify-content: center; margin-bottom: 20px; }
.pg-moon .celestial { --size: 112px; filter: drop-shadow(0 0 16px rgba(207, 211, 218, 0.35)); }

/* Browsers without backdrop-filter: a darker panel keeps the text readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel, .feature-card, .step, .pg-card, .pg .msg { background-color: var(--panel-solid); }
}

/* ── Wider screens ───────────────────────────────────────── */
@media (min-width: 640px) {
  .container { padding: 0 24px; }

  .cta-group { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
  .cta-group .btn { min-width: 200px; }

  .home-bar { padding-top: 20px; }
  .hero-sky { max-width: 520px; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .feature-card, .step { padding: 24px; }

  .sky__panel { padding: 22px 20px 20px; }
  .sky__list--phases { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .sky__list--phases .celestial { --size: 46px; }
  /* the planets stay on 5 columns until 960 px: on 10 narrow columns
     a Sun 1.5 × would touch the Moon next to it */

  .pg-header { padding-top: 20px; }
  .pg-main { padding: 36px 0 72px; }
  .pg-card { padding: 28px; }
  .pg-card--quiet { padding: 20px 28px; }
  .pg-links { flex-direction: row; flex-wrap: wrap; }
  .pg-links--center { justify-content: center; }
  .pg-links .btn { width: auto; min-width: 200px; }
  .pg-form .btn { width: auto; justify-self: start; min-width: 200px; }
  .pg-tickets li { padding: 18px 24px; }

  /* the cookie table goes back to three columns */
  .pg-table thead { display: table-header-group; }
  .pg-table { display: table; }
  .pg-table tbody { display: table-row-group; }
  .pg-table tr { display: table-row; padding: 0; border-bottom: none; }
  .pg-table td { display: table-cell; width: auto; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
  .pg-table tr:last-child td { border-bottom: none; }
  .pg-table td::before { content: none; }
}

@media (min-width: 960px) {
  body { font-size: 16px; }
  .pg-field input, .pg-field select, .pg-field textarea { font-size: 15px; }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    gap: 48px;
    min-height: min(100vh, 860px);
    padding: 72px 32px;
    text-align: left;
  }
  .hero-content { max-width: 560px; }
  .hero-sub { margin-left: 0; margin-right: 0; }
  .cta-group { justify-content: flex-start; margin-left: 0; }
  .hero-sky { order: 0; flex: 0 1 520px; max-width: 520px; }

  section { padding: 80px 0; }
  .section-sub { margin-bottom: 40px; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; }

  .sky__list--planets { grid-template-columns: repeat(10, minmax(0, 1fr)); }

  .steps { flex-direction: row; align-items: stretch; justify-content: center; gap: 16px; margin-top: 40px; }
  .step { flex: 1 1 0; max-width: 320px; }
  .step-arrow { display: block; }

  .final-cta { padding-bottom: 96px; }
  .final-cta__sun { --size: 140px; margin: -16px auto -4px; }
  .final-cta .cta-group { justify-content: center; margin-left: auto; }

  .pg-main { padding: 48px 0 88px; }
}

/* Less motion when the visitor asks for it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-sky__sun { animation: none; }
  .reveal .feature-card, .reveal .step { opacity: 1; transform: none; transition: none; }
}

/* ── Language switcher (15/10/26, components/oraclea_lang_switch.php) ──
   Under the footer links, same look: plain words, 44 px targets;
   the current language in the full text colour. */
.lang-switch { margin: 0 0 8px; }
.lang-switch__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 16px;
}
.lang-switch button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font-family: var(--sans);
  font-size: var(--fs-small);
  cursor: pointer;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.lang-switch button[aria-current="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ── Right to left (15/10/26, ar) ─────────────────────────────
   <html dir="rtl"> (OracleaLang::dir). Flex rows reverse by
   themselves; this flips what is written with physical sides.
   The sky picture (.hero-sky__body--*) stays as it is: it is a
   picture of the sky, not text. */
[dir="rtl"] .step,
[dir="rtl"] .pg h2,
[dir="rtl"] .pg-table th,
[dir="rtl"] .pg-table td { text-align: right; }
[dir="rtl"] .pg-main ul { margin: 0 1.2em 14px 0; }
[dir="rtl"] .pg-main ul.pg-plain { margin-right: 0; }
[dir="rtl"] .pg-field select { padding-right: 14px; padding-left: 40px; background-position: left 14px center; }
[dir="rtl"] .logo-badge__sun { margin: -4px -6px -4px 0; }
[dir="rtl"] .step-arrow { transform: scaleX(-1); }
/* Arabic letters join: spacing between them breaks the words. */
html:lang(ar) .eyebrow,
html:lang(ar) .logo-badge,
html:lang(ar) .section-label,
html:lang(ar) .pg-updated,
html:lang(ar) .pg-table th,
html:lang(ar) .pg-table td::before { letter-spacing: 0; }
@media (min-width: 960px) {
  [dir="rtl"] .hero { text-align: right; }
  [dir="rtl"] .cta-group { margin-left: auto; margin-right: 0; }
  [dir="rtl"] .final-cta .cta-group { margin-right: auto; }
}
