/* Welcome pages (after downloading Sordina, and after buying Pro), new design. Loaded after new.css and pages.css.
   A celebratory but calm stage hero, numbered first steps as cards, the setup film, then help and Pro. */

/* ---------- Hero: the app icon floats on the stage, with a soft halo ---------- */
.welcome-hero { padding-bottom: clamp(48px, 7vw, 80px); }
.welcome-mark { position: relative; width: 104px; height: 104px; margin: 0 auto 26px; }
.welcome-mark img { position: relative; width: 104px; height: 104px; border-radius: 24px; filter: drop-shadow(0 18px 30px #ff5fa859) drop-shadow(0 2px 4px #0000001f); animation: w-float 6s ease-in-out infinite; }
.welcome-mark::before, .welcome-mark::after {
  content: ""; position: absolute; inset: -18px; border-radius: 40px; pointer-events: none;
  box-shadow: 0 0 0 1.5px #ffffffb3; opacity: 0; animation: w-ring 3.6s ease-out infinite;
}
.welcome-mark::after { animation-delay: 1.8s; }
@keyframes w-float { 50% { transform: translateY(-6px); } }
@keyframes w-ring { 0% { opacity: .9; transform: scale(.82); } 100% { opacity: 0; transform: scale(1.25); } }
.welcome-mark .w-badge {
  position: absolute; right: -10px; bottom: -6px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, #2e2c33, #121116); color: #fff; box-shadow: 0 0 0 3px #fdf3f6, 0 6px 14px #0000002e;
}
.welcome-mark .w-badge svg { width: 18px; height: 18px; }
.page-hero .eyebrow { margin-bottom: 18px; background: #ffffffa6; box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #ffffff80, 0 4px 14px #ff5fa81f; color: var(--stage-ink); }
.launch-note { margin-top: 22px; font-size: 15px; color: #1c1018b3; }
.launch-note a, .stage-links a { color: var(--stage-ink); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.launch-note a:hover, .stage-links a:hover { color: var(--violet); }

/* ---------- Section heads ---------- */
.w-section { max-width: 1080px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 var(--gutter); }
.welcome-hero + .w-section { margin-top: 8px; }
.w-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.w-head .sub { margin-top: 12px; }
.w-kicker { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; font: 600 13px/1.4 var(--text); letter-spacing: .02em; background: #ff5fa81f; color: var(--violet); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- First steps: numbered cards, with the welcome window beside them ---------- */
.setup { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.setup.no-shot { grid-template-columns: minmax(0, 1fr); }
.step-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.step-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card {
  counter-increment: step; position: relative; display: grid; align-content: start; gap: 8px;
  padding: 24px 22px 22px; border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline), var(--lift-1); transition: transform .2s ease, box-shadow .2s ease;
}
.step-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #ff5fa840, 0 12px 32px #ff5fa81f; }
.step-card::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 11px;
  font: 700 16px/1 var(--display); color: #fff;
  background: linear-gradient(180deg, #ff8cc2 0%, #ff5fa8 55%, #e83f8f 100%);
  box-shadow: inset 0 1px 0 #ffffff59, 0 4px 12px #ff5fa84d;
}
.step-card h3 { font: 600 17px/1.3 var(--text); letter-spacing: -.01em; }
.step-card p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.step-card strong { color: var(--ink); font-weight: 600; }
.step-card a { color: var(--violet); text-underline-offset: 3px; }

.setup-shot { margin: 0; position: sticky; top: 96px; border-radius: var(--radius-lg); padding: 22px 22px 16px; box-shadow: var(--lift-2), 0 0 0 1px var(--hairline); }
.setup-shot img { margin: 0 auto; width: min(100%, 300px); border-radius: 14px; filter: drop-shadow(0 18px 30px #0000003d); }
.setup-shot figcaption, .film figcaption, .where-shot figcaption { margin-top: 14px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* Notes under the steps (Pro page) */
.setup-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.setup-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: #ffffffb3; box-shadow: 0 0 0 1px var(--hairline); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.setup-note strong { color: var(--ink); font-weight: 600; }
.setup-note a { color: var(--violet); text-underline-offset: 3px; }

/* Icon chip used in cards */
.w-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #ff5fa81f; color: var(--violet); }
.w-ico svg { width: 18px; height: 18px; }

/* ---------- The film: framed on the desk stage ---------- */
.film { margin: 0; border-radius: var(--radius-lg); padding: clamp(12px, 2.4vw, 24px) clamp(12px, 2.4vw, 24px) 18px; box-shadow: var(--lift-2), 0 0 0 1px var(--hairline); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #120f17; box-shadow: 0 20px 44px #0000003d; }
.film video img { width: 100%; height: auto; }
.film figcaption { color: var(--ink-2); font-weight: 500; }
.film figcaption small { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--ink-3); }

/* ---------- If something doesn't look right ---------- */
.help-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.help-card { display: grid; align-content: start; gap: 10px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--hairline), var(--lift-1); }
.help-card h3 { font: 600 17px/1.3 var(--text); letter-spacing: -.01em; }
.help-card p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.help-card strong { color: var(--ink); font-weight: 600; }
.help-card kbd { vertical-align: 1px; }

/* ---------- Where things are: the panel, with a key beside it ---------- */
.where { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 32px); box-shadow: var(--lift-2), 0 0 0 1px var(--hairline); }
.where-shot { margin: 0; }
.where-shot img { border-radius: 14px; box-shadow: 0 20px 44px #0000003d; }
.where-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.where-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #ffffffc7; box-shadow: 0 0 0 1px var(--hairline); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.where-list strong { color: var(--ink); font-weight: 600; }
.where-tip { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* ---------- Pro: four cases, the call shot and the buy card ---------- */
.pro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.pro-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pro-case { display: grid; align-content: start; gap: 6px; padding: 20px; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--hairline), var(--lift-1); transition: transform .2s ease, box-shadow .2s ease; }
.pro-case:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #ff5fa840, 0 12px 32px #ff5fa81f; }
.pro-case strong { font-weight: 600; font-size: 16px; }
.pro-case span { font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.pro-case em { font-style: normal; color: var(--ink); }
.pro-case::after { content: "Read the guide →"; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--violet); }
.pro-shot { margin: 0; border-radius: var(--radius-lg); padding: clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px) 16px; box-shadow: var(--lift-2), 0 0 0 1px var(--hairline); }
.pro-shot img { border-radius: 12px; box-shadow: 0 16px 36px #0000003d; }
.pro-shot figcaption { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-2); }

.pro-buy { margin: 20px auto 0; max-width: 760px; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 48px); text-align: center; box-shadow: var(--lift-2), 0 30px 70px #ff5fa840; }
.pro-buy .btn { white-space: normal; text-align: center; height: auto; min-height: 52px; padding-block: 12px; }
.pro-buy p { margin: 14px auto 0; max-width: 54ch; font-size: 15px; color: #1c1018cc; }
.pro-buy .pro-also { font-size: 14px; color: #1c1018a6; }
.pro-buy a:not(.btn) { color: var(--stage-ink); font-weight: 600; text-underline-offset: 3px; }

/* Try these first (Pro page): a card with the settings page on top */
.try-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.try-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--hairline), var(--lift-1); transition: transform .2s ease, box-shadow .2s ease; }
.try-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #ff5fa840, 0 12px 32px #ff5fa81f; }
.try-shot { padding: 18px 18px 0; background: var(--desk); background-blend-mode: soft-light, normal, normal, normal, normal, normal; }
.try-shot img { border-radius: 10px 10px 0 0; box-shadow: 0 10px 28px #00000033; aspect-ratio: 1800 / 1000; object-fit: cover; object-position: top; }
.try-copy { display: grid; align-content: start; gap: 6px; padding: 18px 20px 20px; }
.try-copy strong { font-size: 17px; font-weight: 600; }
.try-copy span { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.try-copy em { font-style: normal; color: var(--ink); }
.try-copy .more { margin-top: 2px; font-size: 13.5px; font-weight: 600; color: var(--violet); }

/* Closing card: links on the stage */
.page-cta-card .stage-links { margin: 14px auto 0; max-width: 52ch; color: #1c1018cc; }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .setup { grid-template-columns: minmax(0, 1fr); }
  .setup-shot { position: static; max-width: 420px; margin: 0 auto; }
  .step-cards.three, .help-cards { grid-template-columns: minmax(0, 1fr); }
  .pro-grid, .where { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .step-cards, .pro-cases, .try-cards, .setup-notes { grid-template-columns: minmax(0, 1fr); }
  .welcome-mark, .welcome-mark img { width: 88px; height: 88px; }
}
@media (prefers-reduced-motion: reduce) { .welcome-mark img, .welcome-mark::before, .welcome-mark::after { animation: none; } }
