/* Light theme (Tiago, 12 Nov late evening, via the website session): "more of a light theme rather than a dark theme
   overall, to look more serene and neutral"; "a background instead of a grid"; "the top bar in a lighter colour";
   "I love the vibe of the first part of the video" (warm sand and stone). On the log-in page, "the pixels instead of the
   frame on the right, almost as if they are going from right to left". Loaded last, after app-v7.css. */

:root {
  /* the colour words flip to ink on the light background (everything that reads var(--white…) follows) */
  --white: rgba(17,17,17,.92); --white-2: rgba(17,17,17,.66); --white-3: rgba(17,17,17,.46);
  --line: rgba(17,17,17,.12); --line-2: rgba(17,17,17,.22);
  --series-a: #111; --series-b: rgba(17,17,17,.32);
  --sand-a: #E9E4E0; --sand-b: #DCD5CD; --sand-c: #CFC6BC;   /* the film's opening: warm sand, mid-tone so the off-white tiles still read */
}
html { background: var(--sand-b); color-scheme: light; }
body { color: var(--white); }

/* background: warm sand with a soft fold of light, no grid */
.cloth { background:
  radial-gradient(90% 70% at 18% 8%, rgba(255,255,255,.38), transparent 60%),
  radial-gradient(70% 90% at 92% 100%, rgba(120,104,88,.16), transparent 60%),
  linear-gradient(160deg, var(--sand-a) 0%, var(--sand-b) 52%, var(--sand-c) 100%); }
.v7-bg.v7-grid::before { display: none; }                         /* "a background instead of a grid" */
.v7-bg .v7-tile.v7-glass { background: rgba(255,255,255,.22); }    /* the tile layer stays, as light glass on sand */

/* the top bar: off-white glass, ink text (overrides the shared dark .v7-nav) */
.nav.v7-nav { background: rgba(243,241,238,.84) !important; -webkit-backdrop-filter: blur(16px) saturate(120%) !important; backdrop-filter: blur(16px) saturate(120%) !important;
  border-bottom: 1px solid rgba(17,17,17,.08); box-shadow: 0 6px 24px rgba(60,48,36,.08); }
.nav .brand img, .nav .brand .wm, .nav .brand .sym { filter: none; }
.nav-links a { color: var(--white-2); }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { background: var(--v7-ink); color: var(--v7-off); }
.nav .divider { background: var(--line-2); }
.who > button { border-color: var(--line-2); color: var(--white-2); background: rgba(255,255,255,.4); }
.avatar { background: var(--v7-ink); color: var(--v7-off); }
.chip { background: rgba(255,255,255,.45); border-color: var(--line); color: var(--white-2); }
.chip.live::before { background: #2E8B5E; box-shadow: 0 0 0 3px rgba(46,139,94,.16); }
.menu { background: var(--v7-off); border-color: var(--line); box-shadow: 0 20px 50px rgba(60,48,36,.18); }
.menu a:hover, .menu button:hover { background: rgba(17,17,17,.06); }

/* controls on the background (not inside a tile): ink on sand */
.seg { background: rgba(255,255,255,.4); border-color: var(--line); }
.seg button[aria-pressed="true"] { background: var(--v7-ink); color: var(--v7-off); }
.screen-head .seg { background: rgba(255,255,255,.4); }
.screen-head .seg button[aria-pressed="true"] { background: var(--v7-ink); color: var(--v7-off); }
.btn { border-color: rgba(17,17,17,.3); color: var(--white); }
.btn:hover { background: rgba(17,17,17,.06); border-color: rgba(17,17,17,.5); }
.btn.light { background: var(--v7-ink); color: var(--v7-off); border-color: var(--v7-ink); }
.input { background: rgba(255,255,255,.7); border-color: var(--line-2); color: var(--white); }
.input:focus { border-color: rgba(17,17,17,.5); }
.input::placeholder { color: var(--white-3); }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--white-2) 50%), linear-gradient(135deg, var(--white-2) 50%, transparent 50%); }
.switch { background: rgba(17,17,17,.18); }
.switch[aria-checked="true"] { background: var(--v7-ink); }
.switch[aria-checked="true"]::after { background: var(--v7-off); }
.check input, .reason input, .reason input[type="checkbox"] { accent-color: #111; }
.stepper { background: rgba(255,255,255,.5); }
.tag { border-color: rgba(17,17,17,.3); color: var(--white-2); }
.tag.sample { border-color: rgba(150,98,20,.5); color: #8A5A12; }
.src.live, .data-live { border-color: #2E8B5E !important; color: #1F7A4D !important; }
.meter { background: rgba(17,17,17,.1); }
.meter.accent > i, .meter > i { background: var(--v7-ink); }
.looksmeter.warn .label::after { color: #8A5A12; }
.rows.steps > button.r[aria-pressed="true"]::after { background: var(--v7-ink); }
.win { box-shadow: 0 24px 60px rgba(60,48,36,.22); }
/* the analytics head's control tile becomes light too */
[data-screen="analytics"] .screen-head > div:last-child { background: var(--v7-off); }
/* dialogs and the tooltip: off-white tiles */
.modal-bg { background: rgba(60,48,36,.32); }
.modal { background: var(--v7-off); color: var(--white); border-color: var(--line); }
.mclose { color: var(--white-2); border-color: var(--line-2); }
.offer { border-color: var(--line-2); background: rgba(255,255,255,.5); }
.pk-tag { border-color: var(--line-2); color: var(--white); }
.toast { background: var(--v7-ink); color: var(--v7-off); }

/* tiles: soft warm shadow on sand */
.screen .card, .screen .plan { box-shadow: 0 1px 0 rgba(60,48,36,.06), 0 16px 40px rgba(60,48,36,.16); }

/* ---------- log in: the squares instead of the glass frame (right to left) ---------- */
.entry .scrim { background: linear-gradient(180deg, rgba(243,241,238,.45) 0%, rgba(243,241,238,0) 16%),
  linear-gradient(20deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.18) 28%, transparent 46%); }
.entry .top img { filter: none !important; }
.entry .px { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.entry .px i { position: absolute; width: var(--sz); height: var(--sz); background: transparent; opacity: 0;
  transition: opacity 260ms var(--v7-ease), background-color 260ms; transition-delay: var(--d, 0ms); }
.entry .px.in i { opacity: 1; }
.entry .px i.g { background: rgba(243,243,241, calc(var(--ta, .6) * .3)); -webkit-backdrop-filter: blur(10px) saturate(115%); backdrop-filter: blur(10px) saturate(115%); }
.entry .px i.s { background: rgba(243,243,241, var(--ta, .94)); }
.frame-wrap { z-index: 3; }
.entry .frame { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--white);
  --white: rgba(17,17,17,.92); --white-2: rgba(17,17,17,.66); --white-3: rgba(17,17,17,.5); --line: rgba(17,17,17,.12); --line-2: rgba(17,17,17,.22); }
.entry .frame .google { border-color: rgba(17,17,17,.2); }
.entry .frame .title { color: var(--v7-ink); }
.entry .frame .btn.primary { color: #111; }
@media (max-width: 900px) { .entry .px { display: none; } .entry .frame { background: var(--v7-off); } }
/* the words over the log-in photo stay light (they sit on the photo, not on sand) */
.entry .copy { --white: rgba(243,243,241,.96); --white-2: rgba(243,243,241,.82); --white-3: rgba(243,243,241,.6); color: var(--white); }
.entry .copy .display { color: var(--white); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.entry .pairs button { background: rgba(243,243,241,.4); }
.entry .pairs button[aria-current="true"] { background: rgba(243,243,241,.96); }
.keybox { background: rgba(255,255,255,.6); border-color: var(--line-2); border-radius: var(--v7-r); }
.link { text-decoration-color: rgba(17,17,17,.3); }
.link.quiet { text-decoration-color: rgba(17,17,17,.16); }

/* ---------- round 6 (Tiago, 13 Nov, via the website session): orthogonal, black, a fabric background ----------
   "switch the rounded buttons to be orthogonal"; "switch the blue button to be black"; the same on every screen;
   "a background image from a fabric … so that it's not plain, monochrome" (app-tulle.jpg, made for the app, used only here). */
:root { --accent: #141413; --accent-hover: #000; }
.btn.primary, .entry .frame .btn.primary, .inst-body .what .btn.primary { background: #141413; border-color: #141413; color: #F3F3F1; }
.btn.primary:hover { background: #000; border-color: #000; color: #F3F3F1; }
.screen .plan[aria-pressed="true"] { box-shadow: 0 0 0 2px #141413, 0 16px 40px rgba(60,48,36,.16); }
:focus-visible { border-radius: 2px; }

/* square corners on every button and control (only the symbol and the type stay round) */
.btn, .btn.sm, .link-btn, .seg, .seg button, .input, select.input, textarea.input, .chip, .tag, .src, .pk-tag,
.who > button, .avatar, .stepper, .switch, .switch::after, .mclose, .keybox, .offer, .reason, .modal, .menu, .menu a, .menu button,
.nav-links a, .frame .google, .entry .frame .seg, .entry .pairs button, .tab, .rows.steps > button.r, .meter, .meter > i,
.split-bar, .split-bar i, .rank li .bar, .rank li .bar i, .dist .col, .dist .col i, .months .col i, .looksmeter .meter,
.screen .card .seg, .screen .card .seg button, .screen-head .seg, .screen-head .seg button, .toast, .tip, .istep .tag,
.inst-body .mock, .inst-body .mock .mb, .inst-body .mock .mrow, .inst-body .what .path b, .inst-body .what .btn { border-radius: 2px !important; }
.screen .card .split-bar, .screen .card .rank li .bar, .screen .card .meter { border-radius: 0 !important; }
.screen .card .split-bar i, .screen .card .rank li .bar i, .screen .card .meter > i { border-radius: 0 !important; }

/* the fabric: ivory and cream tulle behind every screen after log in, with a light veil so the words stay calm */
.cloth { background: linear-gradient(180deg, rgba(243,241,238,.28), rgba(243,241,238,.12)), url(../assets/img/v7/app-tulle.jpg) center / cover no-repeat, var(--sand-a); }

/* words over photos: white with a warm shade behind them (like the film's opening) */
.entry .scrim { background: linear-gradient(180deg, rgba(243,241,238,.45) 0%, rgba(243,241,238,0) 16%),
  linear-gradient(20deg, rgba(74,52,32,.5) 0%, rgba(74,52,32,.16) 30%, transparent 48%); }
.entry .copy .display { text-shadow: 0 2px 30px rgba(74,52,32,.35); }

/* ---------- round 6c (Tiago, 13 Nov): white titles on every page; a calmer background ----------
   "the title should be white as well on every page"; "switch the background … it's looking a little bit overwhelming".
   The tulle is kept but softened: blurred into a quiet texture under a warm mid-tone veil (so white titles read).
   A new calm image of its own (matte off-white fabric or a pale landscape) waits for Tiago's yes on the credits. */
.cloth { background: var(--sand-b); overflow: hidden; }
.cloth::before { content: ""; position: absolute; inset: -60px; background: url(../assets/img/v7/app-tulle.jpg) center / cover no-repeat;
  filter: blur(22px) saturate(.85); transform: scale(1.06); }
.cloth::after { content: ""; display: block !important; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(150,128,104,.34) 0%, rgba(176,156,134,.22) 38%, rgba(226,218,208,.18) 100%); }
/* page titles: white with a warm shade behind them, like the words over the site's photos */
.screen .head > .title { color: #F7F5F1; text-shadow: 0 2px 26px rgba(74,52,32,.42), 0 1px 3px rgba(74,52,32,.28); }

/* ---------- the dashboard's looks-per-shopper control (Tiago, 13 Nov: "very important") ---------- */
.lps-card { grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 6px; }
.lps-card .lim { font-size: 10px; letter-spacing: .05em; padding: 1px 7px; border-radius: 2px; background: var(--v7-ink); color: var(--v7-off); white-space: nowrap; }
.lps-card:hover .lim { background: var(--v7-off); color: var(--v7-ink); }
.lps-set { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lps-card .stepper { background: #fff; border-color: var(--line-2); }
.lps-card:hover .stepper { background: rgba(241,240,236,.08); }
.lps-card .stepper button { width: 30px; height: 34px; color: var(--white); }
.lps-card .stepper input { font-size: clamp(20px, 1.5vw, 26px); width: 2.6ch; height: 34px; color: var(--white); }
.lps-ex { line-height: 1.35; }
.lps-ex b, .lps-used b { font-weight: 400; color: var(--white); }
.lps-used { color: var(--white-2); }
.lps-used .src { margin-left: 4px; }
@media (max-height: 860px) { .lps-card .dist { display: none; } .lps-card #dLpsWho { font-size: 11px; } }
@media (max-width: 1600px) { .lps-card .who { display: none; } .lps-used .src { margin-left: 0; } }

/* ---------- round 8 (Tiago, 13 Nov): the log-in bar ---------- */
.entry-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 6; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); }
.entry-bar::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: rgba(243,241,238,.55);
  transform: scaleX(0); transform-origin: left; animation: ebLine 900ms cubic-bezier(.77,0,.18,1) 200ms forwards; }
@keyframes ebLine { to { transform: scaleX(1); } }
.entry-bar .top { position: static; }
.entry-bar .top img { filter: invert(1) !important; opacity: .96; }   /* the light logo */
.entry .scrim { background: linear-gradient(180deg, rgba(74,52,32,.34) 0%, rgba(74,52,32,0) 18%),
  linear-gradient(20deg, rgba(74,52,32,.5) 0%, rgba(74,52,32,.16) 30%, transparent 48%); }
.eb-right { display: flex; align-items: center; gap: 8px; }
.eb-right .btn { min-height: 36px; padding: 0 14px; font-size: 12px; }
.eb-right .btn:not(.primary) { background: rgba(243,241,238,.9); border-color: rgba(17,17,17,.25); color: #141413; }
.eb-right .btn:not(.primary):hover { background: #fff; }
.eb-toggle { width: 40px; height: 36px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 2px; }
.eb-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: #141413; transition: transform 300ms cubic-bezier(.4,0,.2,1); }
.eb-toggle span:first-child { top: 14px; } .eb-toggle span:last-child { top: 21px; }
.entry-bar.open .eb-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.entry-bar.open .eb-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.eb-menu { position: absolute; right: var(--gutter); top: 64px; display: grid; min-width: 220px; padding: 6px; background: var(--v7-off); border: 1px solid rgba(17,17,17,.1);
  box-shadow: 0 20px 50px rgba(60,48,36,.18); border-radius: 2px; animation: ebIn 260ms cubic-bezier(.2,.7,.2,1); }
.eb-menu a { padding: 10px 12px; font-size: 12.5px; color: #141413; text-decoration: none; border-radius: 2px; }
.eb-menu a:hover { background: rgba(17,17,17,.06); }
@keyframes ebIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .entry-bar::after { animation: none; transform: none; } .eb-menu { animation: none; } }
@media (max-width: 600px) { .entry-bar .top .wm { display: none; } .eb-right { gap: 6px; } .eb-right .btn { padding: 0 10px; font-size: 11px; min-height: 34px; } .entry .frame { border-radius: 2px; } }
@media (max-width: 900px), (max-height: 520px) { .entry .copy { padding-top: 84px; } }

/* ---------- no shadows (Tiago, 13 Nov, via the website session): none on boxes, none on text, as on the site ---------- */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
.v7-tiles, .v7-bg .v7-tiles { filter: none !important; }
/* without shadows, the white titles need a darker ground: a warm shade in the top-left corner where every title sits
   (measured ≥ 3:1 for large text), the rest of the page stays light */
.cloth::after { background:
  radial-gradient(70% 62% at 8% 6%, rgba(98,76,56,.62) 0%, rgba(98,76,56,.42) 42%, rgba(98,76,56,0) 100%),
  linear-gradient(180deg, rgba(150,128,104,.3) 0%, rgba(176,156,134,.18) 38%, rgba(226,218,208,.16) 100%) !important; }
.cloth::after { background:
  linear-gradient(90deg, rgba(92,70,50,.7) 0%, rgba(92,70,50,.58) 26%, rgba(92,70,50,.22) 44%, rgba(92,70,50,0) 60%),
  linear-gradient(180deg, rgba(150,128,104,.26) 0%, rgba(176,156,134,.16) 38%, rgba(226,218,208,.14) 100%) !important; }
/* golden text-side shade (matches the site) */
.cloth::after { background:
  linear-gradient(90deg, rgba(112,76,40,0.71) 0%, rgba(120,84,46,0.61) 26%, rgba(124,88,48,0.34) 44%, rgba(130,92,52,0.10) 62%, transparent 100%),
  linear-gradient(180deg, rgba(150,128,104,.26) 0%, rgba(176,156,134,.16) 38%, rgba(226,218,208,.14) 100%) !important; }

/* ---------- round 9 (Tiago, 15 Nov): log in / register = the night side (dark palette; every other screen stays light) ----------
   A refined dark library at night, black and white, cinematic. Until the night photos exist (plan + credits waiting for
   Tiago's yes: app/login-night/PLAN.md), the current pairs are shown in black and white and darkened, as a stand-in. */
.entry { background: #0c0b0a; color-scheme: dark;
  --white: rgba(243,241,238,.94); --white-2: rgba(243,241,238,.72); --white-3: rgba(243,241,238,.52);
  --line: rgba(243,241,238,.14); --line-2: rgba(243,241,238,.26); }
.entry .slide img { filter: grayscale(1) brightness(.62) contrast(1.06); }
.entry .slide img.night { filter: none; }   /* the real night photos, once made, need no filter */
.entry .scrim { background: linear-gradient(180deg, rgba(8,8,7,.5) 0%, rgba(8,8,7,0) 20%),
  linear-gradient(90deg, rgba(8,8,7,.35) 0%, rgba(8,8,7,0) 40%), linear-gradient(20deg, rgba(8,8,7,.55) 0%, transparent 46%); }
/* the squares turn to night: deep charcoal, glass then solid, solid under the form */
.entry .px i.g { background: rgba(14,13,12, calc(var(--ta, .6) * .45)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.entry .px i.s { background: rgba(14,13,12, var(--ta, .94)); }
/* the form in light words on the dark squares */
.entry .frame { --white: rgba(243,241,238,.94); --white-2: rgba(243,241,238,.72); --white-3: rgba(243,241,238,.52);
  --line: rgba(243,241,238,.16); --line-2: rgba(243,241,238,.3); color: var(--white); }
.entry .frame .title { color: #F3F1EE; }
.entry .frame .input { background: rgba(243,241,238,.06); border-color: rgba(243,241,238,.24); color: #F3F1EE; }
.entry .frame .input:focus { border-color: rgba(243,241,238,.6); }
.entry .frame .seg { background: rgba(243,241,238,.06); border-color: rgba(243,241,238,.16); }
.entry .frame .seg button { color: rgba(243,241,238,.72); }
.entry .frame .seg button[aria-pressed="true"] { background: #F3F1EE; color: #141413; }
.entry .frame .btn.primary { background: #F3F1EE; border-color: #F3F1EE; color: #141413; }   /* on the night side the main button is the light one */
.entry .frame .btn.primary:hover { background: #fff; border-color: #fff; color: #141413; }
.entry .frame .google { background: transparent; color: #F3F1EE; border-color: rgba(243,241,238,.3); }
.entry .frame .google:hover { background: rgba(243,241,238,.08); }
.entry .frame .link { color: rgba(243,241,238,.78); text-decoration-color: rgba(243,241,238,.35); }
/* the bar: light logo, light menu icon; "pricing & plans" filled light, "book a demo" outlined light */
.entry-bar::after { background: rgba(243,241,238,.28); }
.eb-right .btn.primary { background: #F3F1EE; border-color: #F3F1EE; color: #141413; }
.eb-right .btn:not(.primary) { background: transparent; border-color: rgba(243,241,238,.42); color: #F3F1EE; }
.eb-right .btn:not(.primary):hover { background: rgba(243,241,238,.1); }
.eb-toggle span { background: #F3F1EE; }
.eb-menu { background: #141312; border-color: rgba(243,241,238,.14); }
.eb-menu a { color: #F3F1EE; }
.eb-menu a:hover { background: rgba(243,241,238,.08); }
@media (max-width: 900px) { .entry .frame { background: #141312; } }

/* the night photos: shown as made (no stand-in filter), not mirrored: the person already stands left of the form */
.entry .slide img.night { filter: none; transform: none; object-position: 30% 50%; }

/* ---------- round 10 (Tiago, 16 Nov): a dark black-and-white cloth behind the night photos ----------
   "a dark background to match … a black-and-white but dark-style cloth image as the background, just to keep it consistent".
   The cloth (night-cloth.jpg, made by the website session for this page) fills the screen; each night photo fades out
   towards the right, so the cloth shows under the squares and the form while the person stays clear on the left. */
.entry { background: #0c0b0a url(../assets/img/app-night/night-cloth.jpg) center / cover no-repeat; }
@media (min-width: 901px) and (min-height: 521px) {
  .entry .hero { -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 50%, rgba(0,0,0,.35) 64%, transparent 78%);
    mask-image: linear-gradient(90deg, #000 0%, #000 50%, rgba(0,0,0,.35) 64%, transparent 78%); }
}
@media (max-width: 900px), (max-height: 520px) {
  .entry .frame { background: #141312 url(../assets/img/app-night/night-cloth.jpg) center / cover no-repeat; }
}
@media (max-width: 900px), (max-height: 520px) {
  .entry .frame { background: linear-gradient(rgba(20,19,18,.8), rgba(20,19,18,.8)), #141312 url(../assets/img/app-night/night-cloth.jpg) center / cover no-repeat; }
}
