/* 1465: the home page for a stranger (option A, docs/design/sketches/1465.css). Theme tokens come from home.css (Plain / Large & clear,
   light / dark); the picture frame's own colours are the token line below. Parts are hx- only. */
:root { --frame: #161616; --mat: #f4f1ea; --paper: #ffffff; --paper-line: #d8d8de; }

/* 1459: the bar is the shared one (src/parts/header.js, public/base.css): its links, its menu, its height and width */
.hx-in { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.home .hx a, .home .hx-hero a, .home .hx-foot a { text-decoration: none; }

/* first screen */
.hx-hero { padding: 4px 0 28px; }
.hx-hero .hx-in { display: grid; gap: 20px; }
/* 1653: the pain -> pin signature, small, above the promise; plays once on load */
.hx-sig { --sig: 48px; line-height: 1; margin: 0 0 -6px; }
.hx-sig .sig { padding-top: .08em; padding-bottom: .3em; }
@media (max-height: 500px) { .hx-sig { --sig: 26px; margin: 0 0 -8px; } }
.hx-h1 { font: 700 clamp(31px, 8.6vw, 34px)/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
[data-theme="large"] .hx-h1 { font-size: 36px; }
.hx-p { margin-top: 12px; color: var(--muted); max-width: 34em; text-wrap: pretty; }
.hx-vk { margin-top: 10px; font: italic 600 calc(var(--body) + 1px)/1.3 var(--serif); color: var(--ink); max-width: 34em; text-wrap: balance; }   /* 1385: the vision line */
.home a.hx-go { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--btn); margin-top: 20px; padding: 0 24px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: calc(var(--body) + 1px); touch-action: manipulation; user-select: none; }
.hx-go:active { transform: scale(.98); }
.hx-under { margin-top: 10px; color: var(--muted); text-align: center; }
.hx-under b { color: var(--ink); font-weight: 600; }
.home a.hx-or { display: flex; justify-content: center; width: 100%; min-height: var(--tap); align-items: center; margin-top: 2px; font-weight: 600; color: var(--accent); text-align: center; }
/* 214: what PinOnce sells, from the plans, and the Pricing link: the verifier's answer on the first screen */
.hx-what { margin-top: 8px; font-size: var(--small); color: var(--muted); text-align: center; text-wrap: pretty; }
.home .hx-hero .hx-what a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 4px; margin: -12px -4px; }

/* the gift, drawn from a real photo */
.hx-wall { position: relative; border-radius: 18px; background: var(--surface-2); padding: 22px 0 18px; display: grid; place-items: center; overflow: hidden; }
.hx-frame { width: 58%; max-width: 250px; background: var(--frame); padding: 7px; box-shadow: var(--shadow-screen); }
.hx-mat { background: var(--mat); padding: 9%; }
.hx-mat img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hx-cap { margin-top: 12px; font-size: var(--small); color: var(--ink); }
.hx-cap b { color: var(--ink); }

/* outside the US: the letter, as it looks */
.hx-guide { display: block; border-radius: 18px; background: var(--surface-2); padding: 18px; }
.hx-gc { background: var(--surface); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); max-width: 360px; margin: 0 auto; }
.hx-gtop { display: flex; align-items: center; gap: 8px; font-size: var(--small); color: var(--ink); }
.hx-gtop i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: none; }
.hx-gq { font-weight: 700; margin: 12px 0 0; }
.hx-gp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.hx-gp span { display: block; }
.hx-gp img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }

/* sections */
.hx-sec { padding: 28px 0; border-top: 1px solid var(--line); }
.hx-h2 { font: 700 26px/1.15 var(--serif); letter-spacing: -.01em; margin-bottom: 16px; }
[data-theme="large"] .hx-h2 { font-size: 30px; }
.hx-steps { display: grid; gap: 12px; list-style: none; padding: 0; }
.hx-st { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
[data-theme="large"] .hx-st { grid-template-columns: 120px 1fr; }
.hx-mini { display: grid; align-content: center; gap: 4px; }
.hx-mini .g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.hx-mini .g3 img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.hx-mini .th { width: 62%; margin: 0 auto 2px; background: var(--frame); padding: 3px; }
.hx-mini .th img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 4px solid var(--mat); }
.hx-paper { width: 70%; margin: 0 auto; background: var(--paper); padding: 8px; display: grid; gap: 5px; box-shadow: 0 0 0 1px var(--line); }
.hx-paper img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.hx-paper i { height: 4px; background: var(--paper-line); } .hx-paper i:last-child { width: 60%; }
.hx-box { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 3px solid currentColor; color: var(--accent); display: grid; place-items: center; font: 700 26px/1 var(--ui); }
.hx-sn { display: block; font-size: var(--small); color: var(--accent); font-weight: 700; }
.hx-st b { display: block; font-weight: 700; }
.hx-st p { color: var(--muted); font-size: var(--small); }

.hx-rows { display: grid; gap: 10px; }
.hx-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm); color: var(--ink); }
.hx-row > span { flex: 1; min-width: 0; }
.hx-row b { display: block; font-weight: 700; }
.hx-row small { display: block; font-size: var(--small); color: var(--muted); }
.hx-row svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
[dir="rtl"] .hx-row svg { transform: scaleX(-1); }
.home a.hx-all { display: inline-flex; min-height: var(--tap); align-items: center; margin-top: 6px; font-weight: 600; color: var(--accent); }

.hx-price { text-align: center; }
.hx-price p { color: var(--muted); }
.home .hx-price a.hx-go { max-width: 420px; margin-inline: auto; }

.hx-foot { position: relative; padding: 24px 0 calc(36px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: var(--small); color: var(--muted); }
.hx-foot .season { left: 16px; right: 16px; top: -14px; height: 26px; }
.hx-fl { display: flex; flex-wrap: wrap; gap: 0 18px; }
.home .hx-fl a { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--ink); }
.hx-fl a[aria-current] { color: var(--accent); font-weight: 600; }
.hx-legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 4px; justify-items: start; }
.hx-legal p { margin: 0; } .hx-legal address { font-style: normal; }
.home .hx-legal a { min-height: var(--tap); display: inline-flex; align-items: center; color: var(--ink); }
[data-theme="large"] .hx-foot { color: var(--ink); }

@media (prefers-color-scheme: dark) { .hx-frame, .hx-mini .th { box-shadow: 0 0 0 2px var(--line); } }

/* wider screens */
@media (min-width: 760px) {
  .hx-hero .hx-in { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding-top: 24px; }
  .hx-h1 { font-size: clamp(36px, 4.4vw, 56px); }
  [data-theme="large"] .hx-h1 { font-size: clamp(40px, 4.6vw, 56px); }
  .home a.hx-go { width: auto; display: inline-flex; }
  .hx-under { text-align: start; }
  .home a.hx-or { justify-content: flex-start; width: auto; text-align: start; }
  .hx-what { text-align: start; }
  .hx-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .hx-st, [data-theme="large"] .hx-st { grid-template-columns: 1fr; align-items: start; }
  .hx-mini { height: 124px; max-width: 200px; }
  .hx-mini .g3 { max-width: 140px; }
  .hx-mini .th { width: 84px; margin: 0; }
  .hx-box { margin: 0; }
  .hx-paper { width: 100px; margin: 0; }
  .hx-rows { grid-template-columns: repeat(3, 1fr); }
  .hx-sec { padding: 48px 0; }
  .hx-h2 { font-size: 30px; }
}
/* phone turned sideways: very short, so the first screen is two columns and the picture shrinks */
@media (min-width: 640px) and (max-height: 500px) {
  .hx-hero .hx-in { grid-template-columns: 1.2fr 1fr; gap: 24px; padding-top: 4px; }
  .hx-h1 { font-size: 30px; }
  .hx-p { margin-top: 8px; }
  .home a.hx-go { margin-top: 14px; }
  .hx-wall, .hx-guide { padding: 10px; }
  .hx-frame { width: 40%; }
  .hx-gc { padding: 10px; } .hx-gp { grid-template-columns: repeat(3, 56px); justify-content: center; }
}
@media (min-width: 1600px) { .hx-in { max-width: 1240px; } }
.home .hx-foot .logo { color: var(--ink); }
/* 1654: the photographer's and the reseller's doors, right under the first screen (no heading: the rows say who they are for); two across on wider screens */
@media (min-width: 760px) { .hx-doors .hx-rows { grid-template-columns: repeat(2, 1fr); } }
.hx-doors { padding-top: 20px; }
