/* ═══════════════════════════════════════════════════════════════
   SOLONAS Studio: the look of the App Store screenshots (warm light,
   film grain, serif headlines, real device screens).
   Pages opt in with <body class="v2">. Day theme by default, night
   theme with the visitor's dark mode. Images: assets/home/, built by
   _project-files/redesign/make-home-art.py.
   ═══════════════════════════════════════════════════════════════ */

.v2 {
  /* Day: warm daylight studio */
  --bg: #f7f4ef;
  --bg-band: #efeae2;
  --tile-top: #ffffff;
  --tile-bottom: #fbf9f6;
  --ink: #1d1b18;
  --ink-2: #4a453e;
  --ink-3: #6f675d;
  --kicker: #b25a12;
  --link: #a14f0c;
  --line: rgba(0, 0, 0, 0.09);
  --tile-border: rgba(0, 0, 0, 0.06);
  --tile-shadow: 0 1px 2px rgba(40, 25, 10, 0.04), 0 14px 34px rgba(60, 40, 20, 0.07);
  --glow-amber: rgba(255, 160, 80, 0.34);
  --glow-amber-2: rgba(255, 196, 140, 0.14);
  --glow-teal: rgba(110, 175, 210, 0.2);
  --glow-violet: rgba(150, 90, 220, 0.14);
  --device-shadow: rgba(60, 35, 10, 0.3);
  --floor-shadow: rgba(60, 35, 10, 0.22);
  --reflect: rgba(255, 255, 255, 0.26);
  --grain-opacity: 0.4;
  --glass-top: rgba(255, 255, 255, 0.82);
  --glass-bottom: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.95);
  --tag-ink: #ffffff;
  --tag-bg: #c2651a;
  --serif: ui-serif, "New York", Charter, "Iowan Old Style", Georgia, serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/><feComponentTransfer><feFuncA type='table' tableValues='0 0.10'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background: var(--bg);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .v2 {
    /* Night: the studio of the App Store screenshots */
    --bg: #0b0a09;
    --bg-band: #13110e;
    --tile-top: #181511;
    --tile-bottom: #0f0d0a;
    --ink: #f6f1ea;
    --ink-2: #c4bcb1;
    --ink-3: #978f84;
    --kicker: #f39c45;
    --link: #ffbb78;
    --line: rgba(255, 255, 255, 0.08);
    --tile-border: rgba(255, 255, 255, 0.07);
    --tile-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --glow-amber: rgba(196, 108, 30, 0.58);
    --glow-amber-2: rgba(122, 61, 16, 0.2);
    --glow-teal: rgba(31, 90, 120, 0.45);
    --glow-violet: rgba(140, 60, 200, 0.32);
    --device-shadow: rgba(0, 0, 0, 0.62);
    --floor-shadow: rgba(0, 0, 0, 0.6);
    --reflect: rgba(255, 255, 255, 0.2);
    --grain-opacity: 1;
    --glass-top: rgba(255, 255, 255, 0.11);
    --glass-bottom: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-highlight: rgba(255, 255, 255, 0.16);
    --tag-ink: #1a1206;
    --tag-bg: #f39c45;
  }
}

/* Korean: the serif falls back to a thin Myeongjo, so Korean headlines use
   the system sans (Apple SD Gothic Neo), as Apple's Korean pages do. */
.v2:lang(ko) { --serif: var(--font-display); }

/* ── Shared header and footer, tinted to the studio ──────── */
.v2 #site-header:empty,
.v2 .site-nav { background: rgba(250, 248, 244, 0.74); }
.v2 .site-footer { --color-surface-alt: var(--bg-band); }
.v2 .site-footer__inner { max-width: 1180px; padding-inline: 28px; }   /* the studio's .wrap */
@media (max-width: 734px) { .v2 .site-footer__inner { padding-inline: 20px; } }
@media (prefers-color-scheme: dark) {
  .v2 #site-header:empty,
  .v2 .site-nav {
    --color-text: var(--ink);
    --color-text-secondary: var(--ink-2);
    --color-text-tertiary: var(--ink-3);
    background: rgba(14, 12, 10, 0.62);
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }
  .v2 .submenu { background: rgba(24, 21, 18, 0.97); }
  .v2 .site-footer {
    --color-surface-alt: var(--bg);
    --color-text: var(--ink);
    --color-text-secondary: var(--ink-3);
    --color-text-tertiary: #746c62;
    --color-border: rgba(255, 255, 255, 0.07);
    --color-accent: var(--link);
  }
}
@media (prefers-color-scheme: dark) and (max-width: 734px) {
  .v2 .site-nav__links { background: #15120f; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
}

/* ── Building blocks ─────────────────────────────────────── */
.studio {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
}
.studio::after {                      /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image: var(--grain);
  opacity: var(--grain-opacity);
}
.studio--band { background: var(--bg-band); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kicker);
}
.v2-section { padding: 128px 0; }
.v2-title {
  margin-top: 14px;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.v2-intro { margin-top: 18px; max-width: 52ch; font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.v2 a.more { display: inline-block; margin-top: 18px; font-size: 16px; font-weight: 500; color: var(--link); }
.v2 a.more:hover { text-decoration: none; opacity: 0.75; }

.glass {
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-highlight), 0 8px 24px rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}

/* App Store badges with the app named underneath */
.v2-badges { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.v2 .badge-item { align-items: flex-start; }
.v2 .badge-item__label { color: var(--ink-3); }

/* ── Hero ────────────────────────────────────────────────── */
.v2-hero { padding: calc(var(--header-h) + 64px) 0 0; }
.v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 64% at 73% 50%, var(--glow-amber), var(--glow-amber-2) 46%, transparent 74%),
    radial-gradient(40% 46% at 6% 4%, var(--glow-teal), transparent 72%);
}
.v2-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 7px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
}
.news-pill:hover { text-decoration: none; }
.news-pill__tag {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag-ink);
  background: var(--tag-bg);
}
.v2-hero .kicker { margin-top: 34px; }
.v2-hero h1 { margin-top: 14px; }
.v2-hero__display {
  display: block;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.v2-hero__sub {
  display: block;
  margin-top: 22px;
  max-width: 30ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.32;
  color: var(--ink-2);
}
.v2-hero__lead { margin-top: 18px; max-width: 44ch; font-size: 17px; line-height: 1.55; color: var(--ink-3); }

/* Devices: Apple product images (the iPhone in Apple's iPhone 18 Pro bezel,
   the Apple Watch Ultra), so Apple's marketing guidelines apply: as is (no
   reflections or shadows), side by side without overlapping, at their true
   relative size. The watch image is 66.49% of the iPhone's width (iPhone
   150 mm tall, watch case 49 mm; make-home-art.py). The phone is drawn at
   most 280px wide, half its pixel width. */
.hero-devices {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  width: 100%;
  max-width: 486px;
  margin-left: auto;
  padding: 8px 0 44px;
}
.hero-devices img { display: block; flex: none; height: auto; }
.hero-devices__phone { width: 57.66%; }
.hero-devices__watch { width: 38.34%; order: -1; }

.works-with {
  margin-top: 8px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  font-size: 14px;
  color: var(--ink-3);
}
.works-with strong { color: var(--ink-2); font-weight: 600; letter-spacing: 0.01em; }

/* ── Bento tiles ─────────────────────────────────────────── */
.v2-bento::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 40% at 85% 0%, var(--glow-teal), transparent 70%);
  opacity: 0.6;
}
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 38px;
  background: linear-gradient(180deg, var(--tile-top), var(--tile-bottom));
  border: 1px solid var(--tile-border);
  box-shadow: var(--tile-shadow);
}
.tile h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tile p { margin-top: 14px; max-width: 36ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.tile .kicker + h3 { margin-top: 12px; }
.tile__art img { display: block; width: 100%; height: auto; }

.tile--watch {
  grid-column: span 4;
  min-height: 560px;
  background:
    radial-gradient(46% 62% at 76% 60%, var(--glow-amber), var(--glow-amber-2) 52%, transparent 76%),
    linear-gradient(180deg, var(--tile-top), var(--tile-bottom));
}
.tile--watch .tile__copy { max-width: 48%; }
.tile--watch .tile__art { position: absolute; right: 10%; top: 50%; transform: translateY(-50%); width: 240px; }
/* Apple product images in the tiles are shown whole and as is (no shadows) */

.tile--iphone {
  grid-column: span 2;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(80% 55% at 50% 100%, var(--glow-teal), transparent 72%),
    linear-gradient(180deg, var(--tile-top), var(--tile-bottom));
}
.tile--iphone .tile__art { margin: 34px auto 0; width: 190px; }

.tile--small { grid-column: span 2; padding: 34px; }
.tile--small h3 { font-size: 26px; margin-top: 22px; }
.tile--small p { font-size: 16px; }
.glyph {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--link);
}
.glyph svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ── iPhone Duo ──────────────────────────────────────────── */
/* Real screens from the owner's App Store images inside Apple's official
   iPhone Duo bezels (make-home-art.py). Apple's marketing guidelines ask
   for the bezels as is: no reflections, shadows, cropping or tilting, so
   these images get no effects, and devices keep their true relative size.
   All four files share one scale, so each pair's columns are sized by the
   files' widths (645 closed, 1258 open) and a closed Duo is always 51.29%
   of the open one. Every image is drawn at most half its pixel width. */
.v2-duo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 30% at 62% 46%, var(--glow-violet), transparent 72%),
    radial-gradient(30% 24% at 30% 50%, var(--glow-amber-2), transparent 72%);
}
.v2-duo__head { text-align: center; }
.v2-duo__head .v2-title { max-width: none; }
.v2-duo__head .v2-intro { margin-left: auto; margin-right: auto; text-wrap: balance; }

.duo-shot { margin: 0; text-align: center; }
.duo-shot img { display: block; width: 100%; height: auto; }
.duo-shot figcaption {
  margin-top: 30px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
}

.duo-pair {
  display: grid;
  grid-template-rows: auto auto;
  column-gap: 48px;
  max-width: 1000px;
  margin: 72px auto 0;
}
.duo-pair + .duo-pair { margin-top: 104px; }
.duo-pair--closed-open { grid-template-columns: minmax(0, 645fr) minmax(0, 1258fr); }
.duo-pair--open-closed { grid-template-columns: minmax(0, 1258fr) minmax(0, 645fr); }
.duo-pair .duo-shot {                 /* devices on one line, captions below */
  display: grid;
  grid-row: 1 / span 2;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.duo-pair img { align-self: end; }

/* ── Steps ───────────────────────────────────────────────── */
.steps3 { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.steps3 li { border-top: 1px solid var(--line); padding-top: 26px; }
.steps3 .num { display: block; font-family: var(--serif); font-weight: 700; font-size: 56px; line-height: 1; color: var(--kicker); }
.steps3 h3 { margin-top: 16px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.steps3 p { margin-top: 8px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.guides { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px; }
.guides a { padding: 11px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink); }
.guides a:hover { text-decoration: none; opacity: 0.8; }
.guides__label {
  flex-basis: 100%;
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.guides + .guides { margin-top: 30px; }

/* ── Closing call to action ──────────────────────────────── */
.v2-cta { text-align: center; padding: 140px 0 120px; }
.v2-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(46% 70% at 50% 100%, var(--glow-amber), var(--glow-amber-2) 50%, transparent 76%);
}
.v2-cta .v2-title { margin: 14px auto 0; max-width: none; }
.v2-cta .v2-intro { margin: 18px auto 0; }
.v2-cta .v2-badges { justify-content: center; }
.v2-cta .badge-item { align-items: center; }
.v2-req { margin-top: 26px; font-size: 13px; color: var(--ink-3); }

/* ── Tablet ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .v2-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .v2-hero__sub, .v2-hero__lead { margin-left: auto; margin-right: auto; }
  .v2-hero .v2-badges { justify-content: center; }
  .v2-hero .badge-item { align-items: center; }
  .hero-devices { margin: 10px auto 0; }
  .tile--watch, .tile--iphone { grid-column: span 3; }
  .tile--watch .tile__copy { max-width: none; }
  .tile--watch .tile__art { position: static; transform: none; margin: 30px auto 0; }
  .tile--small { grid-column: span 3; }
  .tile--small:last-of-type { grid-column: span 6; }
  .duo-pair { column-gap: 28px; }
  .duo-pair + .duo-pair { margin-top: 80px; }
  .duo-shot figcaption { font-size: 21px; }
}

/* ── Phones ──────────────────────────────────────────────── */
@media (max-width: 734px) {
  .wrap { padding: 0 20px; }
  .v2-hero { padding-top: calc(var(--header-h) + 36px); }
  .v2-hero .kicker { margin-top: 26px; }
  .v2-hero__display { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  :is(:lang(fr), :lang(el), :lang(ru)) .v2-hero__display { font-size: clamp(2.3rem, 10.4vw, 3rem); }
  .v2-hero__sub { font-size: 1.2rem; margin-top: 18px; }
  .v2-hero__lead { font-size: 16px; }
  .v2-badges { gap: 14px; margin-top: 28px; }
  .works-with { gap: 8px 18px; font-size: 13px; padding: 22px 0 28px; }
  .v2-section { padding: 88px 0; }
  .v2-title { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .v2-intro { font-size: 17px; }
  .bento { grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
  .tile, .tile--watch, .tile--iphone, .tile--small, .tile--small:last-of-type { grid-column: auto; }
  .tile { padding: 28px; border-radius: 26px; }
  .tile h3 { font-size: 28px; }
  .tile--watch, .tile--iphone { min-height: 0; }
  .tile--watch .tile__art { width: 210px; margin: 26px auto 0; }
  .tile--iphone .tile__art { width: 190px; margin-top: 28px; }
  /* The pair runs 12px past the text on each side, so the watch stays at
     least 200px tall (Apple's minimum) down to 343px screens; below that
     the iPhone shows alone. */
  .hero-devices {
    width: min(100% + 24px, 486px);
    max-width: none;
    margin: 10px 0 0;
    margin-inline: calc((100% - min(100% + 24px, 486px)) / 2);
  }
  /* Duo: one column, open first; the closed Duo stays at its true size
     next to the open one (51.29%), and the open one is capped so it stays 2x */
  .duo-pair, .duo-pair--closed-open, .duo-pair--open-closed { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 48px; max-width: 629px; margin-top: 48px; }
  .duo-pair + .duo-pair { margin-top: 64px; }
  .duo-pair .duo-shot { display: block; grid-row: auto; }
  .duo-pair .duo-shot--open { order: -1; }
  .duo-shot--closed img { width: 51.29%; margin: 0 auto; }
  .duo-shot figcaption { margin-top: 24px; }
  .steps3 { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .steps3 .num { font-size: 44px; }
  .v2-cta { padding: 96px 0 88px; }
}

@media (max-width: 342px) {
  .hero-devices .hero-devices__watch { display: none; }   /* below Apple's 200px minimum here */
}

/* ── Reduced motion and transparency ─────────────────────── */
@media (prefers-reduced-transparency: reduce) {
  .glass { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg-band); }
}
