/* Layout: white editorial page; the app's tilted collage wall carries the hero, colour only comes from photos, the logo gradient and the trend glow. Light only, like the app. */

/* Fonts: self-hosted woff2 built from the app's TTFs (App/.../Resources/Fonts), no third-party requests.
   UI fonts are subset to Latin; specimen fonts only carry the glyphs they render. Licences sit next to each file.
   Playfair Display has a Reserved Font Name, so it is not subset or shipped; its two words use Instrument Serif Italic. */
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-regular-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic-latin.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Specimens (Creative tools: Fonts and Stickers cards). Subset to their words only: add glyphs here if the words change. */
@font-face { font-family: "Shrikhand"; src: url("assets/fonts/shrikhand-specimen.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Great Vibes"; src: url("assets/fonts/great-vibes-specimen.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bungee"; src: url("assets/fonts/bungee-specimen.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pacifico"; src: url("assets/fonts/pacifico-specimen.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("assets/fonts/caveat-600-specimen.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --page: #ffffff;
  --ink: #0a0a0a;
  --ink-2: rgba(10, 10, 10, .6);
  --hairline: #dbdbdb;
  --surface: #f2f2f2;
  --cell: #ededed;
  --glow-ground: #fbf4ff;
  --glow-lilac: #e7ccff;
  --glow-pink: #ffd3f1;
  --glow-peach: #ffdcc4;
  --glow-butter: #fff0b0;
  --trend-label: #6b1fa6;
  --blush: #fad6de;
  --peach: #ffe3cc;
  --premium: #9e3558;
  --brand: linear-gradient(135deg, #a000ff 0%, #e62ee0 34%, #ff5a00 68%, #ffe000 100%);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --shadow-card: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --shadow-lift: 0 2px 4px rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.14);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; } /* height:auto keeps the width/height attributes to an aspect-ratio hint */
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 999px; }
.store:focus-visible { border-radius: 14px; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* type */
.eyebrow {
  font: 600 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(3.4rem, 1.6rem + 5.6vw, 6.6rem); line-height: .92; }
h2 { font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.6rem); line-height: .98; }
h3 { font-size: 1.75rem; line-height: 1.05; }
h1 em, h2 em { font-style: italic; }
.lede { font-size: clamp(1.06rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 34ch; margin: 22px 0 0; text-wrap: pretty; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin: 0; color: var(--ink-2); max-width: 40ch; font-size: 1.06rem; }

/* header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.6rem/1 var(--serif); }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--page); border-radius: 999px; text-decoration: none;
  font: 600 15px/1 var(--sans); white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 14px rgba(0,0,0,.18);
  transition: transform .2s;
}
.pill:hover { transform: translateY(-1px); }

/* App Store badge. TODO(badge): hand-drawn stand-in; replace the two <a class="store"> blocks in index.html
   and this block with Apple's official "Download on the App Store" badge artwork. */
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 22px 0 18px;
  background: #000; color: #fff; border-radius: 14px; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition: transform .2s, box-shadow .2s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.store svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.store span { display: grid; line-height: 1.05; }
.store small { font: 500 11.5px/1.1 var(--sans); letter-spacing: .01em; }
.store b { font: 600 22px/1.05 var(--sans); letter-spacing: -.01em; }
.meta { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 680px; align-items: center; }
.hero-copy { padding-block: 72px 88px; }
.hero-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }
.hero-art { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; overflow: hidden; }
.hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--page) 0%, rgba(255,255,255,0) 26%),
    linear-gradient(0deg, var(--page) 0%, rgba(255,255,255,0) 22%);
}
.wall {
  position: absolute; left: 50%; top: 50%; width: 135%; height: 175%;
  transform: translate(-50%, -50%) rotate(-12deg);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.track { display: flex; flex-direction: column; gap: 12px; animation: wall-up var(--dur, 70s) linear infinite; will-change: transform; }
.col.down .track { animation-name: wall-down; }
.track img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 22px; background: var(--surface); }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
@keyframes wall-down { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }

/* glow ground (Trends hero) */
.glow {
  background:
    radial-gradient(70% 55% at 0% 0%, var(--glow-lilac) 0%, rgba(231,204,255,0) 100%),
    radial-gradient(65% 50% at 100% 8%, var(--glow-pink) 0%, rgba(255,211,241,0) 100%),
    radial-gradient(70% 45% at 92% 70%, var(--glow-peach) 0%, rgba(255,220,196,0) 100%),
    radial-gradient(70% 40% at 8% 78%, var(--glow-butter) 0%, rgba(255,240,176,0) 100%),
    var(--glow-ground);
}

/* templates */
.templates { position: relative; overflow: hidden; }
.templates::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(0deg, var(--page), rgba(255,255,255,0)); pointer-events: none; }
.templates .eyebrow { color: var(--trend-label); }
.fan-scroll { position: relative; z-index: 1; overflow-x: auto; scrollbar-width: none; padding-block: 28px 56px; }
.fan-scroll::-webkit-scrollbar { display: none; }
.fan { display: flex; align-items: center; justify-content: center; min-width: max-content; padding-inline: var(--gutter); }
.tcard { flex: none; margin-inline: -14px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lift); background: #fff; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.tcard img { width: 100%; height: 100%; object-fit: cover; }
.tcard:nth-of-type(1) { width: 210px; aspect-ratio: 1; transform: rotate(-7deg) translateY(26px); }
.tcard:nth-of-type(2) { width: 236px; aspect-ratio: 4/5; transform: rotate(-3.5deg) translateY(6px); z-index: 1; }
.tcard:nth-of-type(3) { width: 300px; aspect-ratio: 4/5; transform: none; z-index: 3; }
.tcard:nth-of-type(4) { width: 236px; aspect-ratio: 4/5; transform: rotate(3.5deg) translateY(6px); z-index: 2; }
.tcard:nth-of-type(5) { width: 210px; aspect-ratio: 1; transform: rotate(7deg) translateY(26px); }
.tcard:hover { transform: translateY(-10px) rotate(0); z-index: 5; }
.sticker { position: absolute; z-index: 6; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(0,0,0,.18)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.themes { position: relative; z-index: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.themes-row { display: flex; gap: 10px; width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 70s linear infinite; }
.chip { flex: none; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); box-shadow: 0 1px 2px rgba(0,0,0,.05); font: 500 15px/1 var(--sans); white-space: nowrap; }
.chip.hot { background: var(--ink); color: var(--page); border-color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.count { position: relative; z-index: 1; margin: 22px 0 0; font-size: 15px; color: var(--ink-2); }
.count b { color: var(--ink); font-weight: 600; }

/* formats */
.formats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.panel { background: var(--surface); border-radius: 32px; padding: clamp(22px, 3vw, 36px); min-width: 0; }
.panel h3 { margin-bottom: 6px; }
.panel p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 46ch; }
.panel.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: end; }
.panel.split { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.panel.split .demo { margin-top: 0; width: 100%; }
.panel.split .demo.narrow { max-width: 460px; justify-self: end; }
.sizes { display: flex; align-items: flex-end; gap: clamp(12px, 2.4vw, 28px); }
.size { flex: 1; min-width: 0; }
.size .frame { width: 100%; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); background: #fff; }
.size .frame img { width: 100%; height: 100%; object-fit: cover; }
.size dl { margin: 14px 0 0; display: grid; gap: 2px; }
.size dt { font: 600 15px/1.2 var(--sans); }
.size dd { margin: 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.size-copy { padding-bottom: 6px; }
.size-copy h3 { margin-bottom: 10px; }

.demo { margin-top: 28px; }
.carousel { display: flex; gap: 0; animation: split 5.5s cubic-bezier(.6,0,.2,1) infinite; }
.slide { container-type: inline-size; position: relative; flex: 1; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 0; box-shadow: var(--shadow-card); animation: split-r 5.5s cubic-bezier(.6,0,.2,1) infinite; }
.slide .comp { position: absolute; top: 0; height: 100%; width: 300%; }
.slide:nth-child(1) .comp { left: 0; } .slide:nth-child(2) .comp { left: -100%; } .slide:nth-child(3) .comp { left: -200%; }
.comp { background: linear-gradient(110deg, var(--blush), var(--peach) 55%, var(--glow-butter)); }
.comp .p { position: absolute; background: #fff; padding: 1.2% 1.2% 4.2%; box-shadow: 0 6px 18px rgba(0,0,0,.16); }
.comp .p img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.comp .word { position: absolute; font-family: var(--serif); font-style: italic; color: var(--ink); line-height: .9; }
.slide .n { position: absolute; top: 10px; left: 10px; z-index: 2; font: 600 12px/1 var(--sans); background: rgba(255,255,255,.85); padding: 6px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; animation: fade-n 5.5s ease infinite; }
@keyframes split { 0%, 30% { gap: 0px; } 45%, 85% { gap: 14px; } 100% { gap: 0px; } }
@keyframes split-r { 0%, 30% { border-radius: 0; } 45%, 85% { border-radius: 14px; } 100% { border-radius: 0; } }
@keyframes fade-n { 0%, 32% { opacity: 0; } 45%, 85% { opacity: 1; } 100% { opacity: 0; } }

.puzzle { position: relative; aspect-ratio: 9 / 8; border-radius: 6px; overflow: hidden; background: center / cover no-repeat; box-shadow: var(--shadow-card); }
.puzzle .grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.puzzle .grid span { position: relative; box-shadow: inset 0 0 0 0 #fff; animation: lines 5.5s ease infinite; }
.puzzle .grid i { position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 600 13px/1 var(--sans); font-style: normal; animation: fade-n 5.5s ease infinite; }
@keyframes lines { 0%, 30% { box-shadow: inset 0 0 0 0 #fff; } 45%, 85% { box-shadow: inset 0 0 0 3px #fff; } 100% { box-shadow: inset 0 0 0 0 #fff; } }
.demo-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* tools */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tool { min-width: 0; }
.tool .vis { height: 250px; border-radius: 28px; background: var(--surface); position: relative; overflow: hidden; display: grid; place-items: center; margin-bottom: 20px; }
.tool p { margin: 6px 0 0; color: var(--ink-2); font-size: 15.5px; max-width: 34ch; }

.layouts { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px; }
.layouts svg { width: 64px; height: 80px; background: #fff; border-radius: 9px; box-shadow: var(--shadow-card); }
.layouts svg * { fill: var(--cell); }

.fonts { display: grid; gap: 2px; text-align: center; color: var(--ink); }
.fonts span { display: block; line-height: 1.1; }
.f1 { font: 400 40px "Shrikhand", var(--serif); color: #d23c6a; }
.f2 { font: italic 400 34px var(--serif); }
.f3 { font: 400 40px "Great Vibes", var(--serif); color: #8a4bd6; }
.fonts .row { display: flex; gap: 18px; justify-content: center; align-items: baseline; }
.f4 { font: 400 26px "Bungee", var(--sans); color: #ff5a00; }
.f5 { font: 400 28px "Pacifico", var(--serif); }
.f6 { font: 600 32px "Caveat", var(--sans); color: #2d7a5f; }

.bgs { display: grid; grid-template-columns: repeat(3, 70px); gap: 10px; }
.bgs figure { margin: 0; text-align: center; font-size: 11.5px; color: var(--ink-2); }
.bgs .sw { width: 70px; height: 70px; border-radius: 12px; box-shadow: var(--shadow-card); margin-bottom: 5px; }
.sw.c { background: var(--blush); }
.sw.g { background: linear-gradient(160deg, var(--glow-lilac), var(--glow-pink) 50%, var(--glow-peach)); }
.sw.pt { background: radial-gradient(circle, #ff8fb1 22%, transparent 24%) 0 0 / 14px 14px, #fff4f7; }
.sw.tx { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .33 0 0 0 0 .24 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), #efe6d8; }
.sw.wp { background: repeating-linear-gradient(45deg, rgba(255,90,0,.18) 0 8px, transparent 8px 16px), repeating-linear-gradient(-45deg, rgba(160,0,255,.14) 0 8px, transparent 8px 16px), #fff9ef; }
.sw.ph { background: center / cover url("assets/wall/w12.jpg"); }

.frames { display: flex; gap: 18px; align-items: center; }
.frames > div { width: 92px; box-shadow: var(--shadow-card); }
.fr-pol { background: #fff; padding: 5px 5px 18px; transform: rotate(-5deg); }
.fr-film { background: #111; padding: 13px 4px; position: relative; transform: translateY(-8px); }
.fr-film::before, .fr-film::after { content: ""; position: absolute; left: 4px; right: 4px; height: 5px; background: repeating-linear-gradient(90deg, #f3f3f3 0 5px, transparent 5px 10px); border-radius: 1px; }
.fr-film::before { top: 4px; } .fr-film::after { bottom: 4px; }
.fr-torn { background: #fff; padding: 6px; transform: rotate(5deg); clip-path: polygon(0 3%, 9% 0, 18% 2%, 27% 0, 38% 3%, 49% 0, 60% 2%, 71% 0, 82% 3%, 92% 0, 100% 2%, 98% 14%, 100% 27%, 97% 40%, 100% 53%, 98% 66%, 100% 79%, 97% 91%, 100% 100%, 89% 97%, 78% 100%, 66% 98%, 54% 100%, 42% 97%, 30% 100%, 19% 98%, 8% 100%, 0 97%, 2% 85%, 0 72%, 3% 60%, 0 47%, 2% 34%, 0 21%); }
.frames img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.stick { width: 100%; height: 100%; position: relative; }
.stick img { position: absolute; filter: drop-shadow(0 8px 10px rgba(0,0,0,.16)); }
.stick .say { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg); font: 400 46px "Great Vibes", var(--serif); white-space: nowrap; color: var(--ink); }

.editor { width: 100%; height: 100%; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px; }
.editor .shot { width: 116px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.editor .shot img { width: 100%; height: 100%; object-fit: cover; transition: filter .3s; }
.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.filters button { all: unset; cursor: pointer; text-align: center; font: 500 11px/1.2 var(--sans); color: var(--ink-2); }
.filters button img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; margin-bottom: 4px; outline: 2px solid transparent; outline-offset: 1px; }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"] img { outline-color: var(--ink); }
.filters button:focus-visible img { outline-color: var(--ink); }
.fx-none { filter: none; }
.fx-warm { filter: sepia(.28) saturate(1.25) hue-rotate(-8deg); }
.fx-cool { filter: saturate(.9) hue-rotate(12deg) brightness(1.04); }
.fx-fade { filter: contrast(.82) brightness(1.08) saturate(.8); }
.fx-mono { filter: grayscale(1); }
.fx-vivid { filter: saturate(1.6) contrast(1.08); }
.fx-film { filter: sepia(.18) contrast(1.12) saturate(1.1); }
.fx-matte { filter: contrast(.86) brightness(1.06) sepia(.12); }
.fx-noir { filter: grayscale(1) contrast(1.45) brightness(.92); }

/* simple strip */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.strip > div { padding: 30px 28px; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; }
.strip > div + div { border-left: 1px solid var(--hairline); }
.strip svg { grid-row: span 2; width: 30px; height: 30px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.strip b { font: 400 1.6rem/1.05 var(--serif); }
.strip span { color: var(--ink-2); font-size: 15px; }

/* premium */
.premium { border-radius: 40px; background: linear-gradient(135deg, var(--blush) 0%, var(--peach) 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: clamp(28px, 5vw, 64px); align-items: center; }
.premium .eyebrow { color: var(--premium); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: center; font-weight: 500; }
.checks svg { width: 22px; height: 22px; }
.plans { margin: 26px 0 0; font-size: 15.5px; color: var(--ink); }
.plans small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.compare figure { margin: 0; }
.compare .shot { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4 / 5; background: #fff; }
.compare .shot > img { width: 100%; height: 100%; object-fit: cover; }
.compare figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.compare figcaption b { color: var(--ink); font-weight: 600; }
.wm { position: absolute; right: 4.6%; bottom: 4.6%; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 5px; background: rgba(255,255,255,.96); border-radius: 999px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.18); font: 700 12px/1 var(--sans); }
.compare .wm img { width: 16px; height: 16px; }

/* final */
.final { text-align: left; }
.final-card { position: relative; overflow: hidden; border-radius: 40px; padding: clamp(32px, 6vw, 80px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.final-card .icon { width: clamp(112px, 14vw, 168px); aspect-ratio: 1; border-radius: 22.4%; box-shadow: 0 20px 50px rgba(160, 0, 255, .22), 0 6px 16px rgba(0,0,0,.12); }
.final-card p { color: var(--ink-2); font-size: 1.1rem; margin: 14px 0 28px; max-width: 40ch; }

/* footer */
footer { padding-block: 48px 56px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
footer .brand { font-size: 1.4rem; }
footer .tag { color: var(--ink-2); font-size: 14px; margin: 6px 0 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
footer nav a { text-decoration: none; color: var(--ink-2); }
footer nav a:hover { color: var(--ink); }
footer .foot-links { display: grid; gap: 10px; justify-items: end; }
footer nav a[aria-current] { color: var(--ink); }
footer .copy { width: 100%; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--hairline); padding-top: 20px; }

/* quiet internal links: home Carousel and Puzzle grid panels, Layouts card */
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font: 600 14.5px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--ink-2); text-underline-offset: 4px; }
.more:hover { text-decoration-color: var(--ink); }
.more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.more:hover svg { transform: translateX(2px); }

/* FAQ (home: 6 in two columns; subpages: .three) */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 64px); }
.faq.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qa { border-top: 1px solid var(--hairline); padding: 28px 0 36px; min-width: 0; }
.qa h3 { margin-bottom: 12px; }
.qa p { margin: 0; color: var(--ink-2); font-size: 1.02rem; max-width: 52ch; text-wrap: pretty; }

/* subpages: /instagram-carousel-maker/, /instagram-grid-maker/, /photo-collage-layouts/ */
.crumbs { padding-top: 28px; font-size: 13px; color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 4vw, 48px) clamp(16px, 2vw, 32px); }
@media (min-width: 961px) { .page-hero-grid.art-wide { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); } } /* carousel page: bigger split demo */
.page-hero h1 { font-size: clamp(3rem, 1.7rem + 3.6vw, 5.4rem); line-height: .94; }
.page-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; }
.page-art { background: var(--surface); border-radius: 32px; padding: clamp(22px, 3vw, 36px); min-width: 0; }
.page-art .demo { margin-top: 0; }
.page-art .demo.narrow { max-width: 440px; margin-inline: auto; }
.families { --g: clamp(8px, 1.4vw, 14px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--g); }
.families svg { flex: none; width: calc((100% - 4 * var(--g)) / 5); height: auto; aspect-ratio: 100 / 125; background: #fff; border-radius: 10px; box-shadow: var(--shadow-card); }
.families svg * { fill: var(--cell); }
.families .d { fill: var(--hairline); }
.families .w { fill: var(--page); }
.families .o { fill: var(--page); stroke: var(--hairline); stroke-width: 1.5; }
.families .s { stroke: var(--page); stroke-width: 4; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px clamp(20px, 3vw, 40px); }
.steps li { counter-increment: step; border-top: 1px solid var(--hairline); padding-top: 22px; font-size: 1.02rem; text-wrap: pretty; min-width: 0; }
.steps li::before { content: counter(step); display: block; font: 400 3.6rem/1 var(--serif); margin-bottom: 16px; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.feats li { padding: 30px 28px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.feats li + li { border-left: 1px solid var(--hairline); }
.feats b { font: 400 1.6rem/1.05 var(--serif); }
.feats span { color: var(--ink-2); font-size: 15px; }
.final-card .cta-line { font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1; margin-bottom: 28px; max-width: 20ch; }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-art { position: relative; width: 100%; height: clamp(380px, 92vw, 560px); }
  .hero-art::after { background: linear-gradient(0deg, var(--page) 0%, rgba(255,255,255,0) 34%); }
  .hero-copy { padding-block: 0 64px; margin-top: -40px; text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-copy .actions { justify-content: center; flex-direction: column; gap: 0; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .formats-grid, .panel.wide, .panel.split, .premium { grid-template-columns: minmax(0, 1fr); }
  .panel.split .demo.narrow { justify-self: stretch; max-width: none; }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
  .fan { justify-content: flex-start; padding-inline: 40px; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-art { order: -1; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feats li + li { border-left: 0; border-top: 1px solid var(--hairline); }
  .faq.three { grid-template-columns: minmax(0, 1fr); }
  footer .foot-links { justify-items: start; }
}
@media (min-width: 961px) and (max-width: 1199px) {
  .hero-art { width: 48%; } /* keeps the tilted wall right of the hero text */
}
@media (max-width: 640px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
  .final-card { grid-template-columns: minmax(0, 1fr); }
  .tcard:nth-of-type(1), .tcard:nth-of-type(5) { width: 170px; }
  .tcard:nth-of-type(2), .tcard:nth-of-type(4) { width: 190px; }
  .tcard:nth-of-type(3) { width: 236px; }
  .sticker { display: none; }
  .compare { gap: 12px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-block: 18px; }
  .steps li::before { font-size: 2.2rem; margin: 0; }
  .feats li { padding: 24px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .themes-row, .sticker, .carousel, .slide, .puzzle .grid span { animation: none; }
  .carousel { gap: 10px; }
  .slide .n, .puzzle .grid i { animation: none; opacity: 1; }
  .puzzle .grid span { box-shadow: inset 0 0 0 3px #fff; }
  .themes-row { flex-wrap: wrap; width: auto; }
  .chip[aria-hidden="true"] { display: none; }
}
