/* The idea library: /ideas, /names, /guides, /make and /tools. Built on landing.css. */

.ideas-page { width: min(var(--wrap), 100% - 40px); margin: 0 auto; padding: 40px 0 0; display: flex; flex-direction: column; gap: 88px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* hero: the page's promise on the left, its real video pinned on the right */
.ideas-hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 64px; align-items: center; padding-top: 16px; }
.hub-hero { grid-template-columns: minmax(0, 820px); }
.ideas-hero h1 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.035em; }
.kicker { margin-top: 14px; font-size: clamp(19px, 2vw, 23px); color: var(--accent); }
.ideas-hero .lede { max-width: 64ch; }
.ideas-hero .lede + .lede { margin-top: 12px; }
.ideas-hero .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.idea-print { width: 250px; transform: rotate(2deg); justify-self: end; }
.idea-print figcaption { transform: rotate(-2deg); }

/* the wall of ideas */
.wall-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 32px; margin-bottom: 30px; }
.wall-head h2, .idea-scripts h2, .ideas-faq h2, .ideas-related h2, .hub-block h2 { font-size: clamp(30px, 3.6vw, 42px); }
.wall-head p, .idea-scripts .sub { color: var(--ink-2); max-width: 60ch; }
.wall-group { margin: 40px 0 20px; font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.wall-head + .wall-group { margin-top: 0; }
.idea-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 30px 24px; }
.idea-note { width: auto; min-height: 168px; }
.idea-note .note-idea { font-size: 18px; }
.idea-why { font-size: 14px; line-height: 1.45; color: var(--on-note); }
.idea-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--note-rule); }
.idea-copy, .idea-make {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font: 600 13.5px/1 "Figtree", system-ui, sans-serif; color: var(--on-note); text-decoration: none;
}
.idea-copy:hover, .idea-make:hover { color: var(--ink); }
.idea-make { color: var(--orange-ink); }
.idea-copy .ic, .idea-make .ic { width: 15px; height: 15px; }
.idea-note:hover { transform: rotate(0deg) translateY(-3px); box-shadow: var(--note-shadow-hi); }

/* names */
.name-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.name-chip {
  width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-sm); font: inherit;
  transition: border-color .15s, transform .2s var(--ease);
}
.name-chip b { font-family: var(--hand); font-weight: 500; font-size: 19px; line-height: 1.25; }
.name-chip span { font-size: 13.5px; line-height: 1.4; color: var(--ink-3); }
.name-chip:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.name-chip.copied { border-color: var(--green); }

/* scripts */
.script-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin-top: 26px; }
.script-sheet { display: flex; flex-direction: column; padding: 26px 28px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--print-shadow); }
.script-sheet h3 { margin: 6px 0 12px; font-size: 22px; letter-spacing: -.02em; }
.script-sheet .note-go { margin-top: 18px; }

/* long-form guidance */
.ideas-body { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.ideas-body h2 { margin-top: 28px; font-size: clamp(26px, 3vw, 32px); }
.ideas-body h2:first-child { margin-top: 0; }
.ideas-body p, .ideas-body li { color: var(--ink-2); font-size: 17.5px; line-height: 1.65; }
.ideas-body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

.ideas-faq .faq-list { margin-top: 24px; }

/* related pages and the hub: notes that are links */
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 24px; margin-top: 26px; }
.rel-note { width: auto; min-height: 150px; text-decoration: none; color: var(--ink); }
.rel-note:hover { color: var(--ink); transform: rotate(0deg) translateY(-3px); box-shadow: var(--note-shadow-hi); }
.rel-note .note-idea { font-size: 19px; }
.rel-k { font-size: 14px; line-height: 1.45; color: var(--on-note); }
.rel-go { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; font-weight: 600; font-size: 14px; color: var(--orange-ink); }
.rel-go .ic { width: 15px; height: 15px; }
.hub-block + .hub-block { margin-top: -24px; }

.ideas-close { display: flex; justify-content: center; }

/* name generator */
.namegen { display: flex; flex-direction: column; gap: 28px; }
.namegen-form { display: grid; grid-template-columns: auto minmax(0, 260px) auto minmax(0, 220px) auto; align-items: center; gap: 12px 14px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--shadow-sm); }
.namegen-form label { font-weight: 600; font-size: 15px; }
.namegen-form select, .namegen-form input {
  height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink); font: 500 16px/1 "Figtree", system-ui, sans-serif;
}

/* the "copied" toast */
.copy-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 50; transform: translateX(-50%);
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; box-shadow: var(--btn-shadow);
}

@media (max-width: 960px) {
  .namegen-form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ideas-page { gap: 64px; padding-top: 24px; }
  .ideas-hero { grid-template-columns: 1fr; gap: 40px; }
  .idea-print { justify-self: center; width: 220px; }
  .idea-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .idea-note { padding: 14px 14px 12px; }
  .idea-note .note-idea { font-size: 16.5px; }
  .script-sheet { padding: 22px 20px; }
  .name-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .name-chip { padding: 12px 12px; }
  .name-chip b { font-size: 17px; }
  .name-chip span { font-size: 12.5px; }
}
@media (max-width: 460px) {
  .idea-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .idea-note, .rel-note, .idea-print { transform: none !important; }
}

/* ---------- comparison and product pages ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cost h2, .compare-table h2 { font-size: clamp(30px, 3.6vw, 42px); }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.cost-year { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--shadow-sm); }
.cost-year h3 { font-size: 18px; }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: 15px; color: var(--ink-2); }
.cost-row b { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cost-row i { grid-column: 1 / -1; height: 10px; border-radius: 99px; background: var(--line-2); transform-origin: left; transform: scaleX(var(--w)); }
.cost-row.us i { background: var(--orange); }
.cost-row.us b { color: var(--orange-ink); }
.cost .fine, .compare-table .fine { margin-top: 14px; font-size: 14px; color: var(--ink-3); max-width: 80ch; }
.tbl-wrap { margin-top: 24px; overflow-x: auto; border-radius: var(--r-lg); background: var(--sheet); box-shadow: var(--shadow-sm); }
.tbl-wrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15.5px; }
.tbl-wrap th, .tbl-wrap td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.tbl-wrap tr:last-child th, .tbl-wrap tr:last-child td { border-bottom: 0; }
.tbl-wrap thead th { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.tbl-wrap tbody th { font-weight: 600; color: var(--ink); width: 22%; }
.tbl-wrap td { color: var(--ink-2); }
.tbl-wrap .us { background: color-mix(in srgb, var(--peach) 45%, transparent); color: var(--ink); }
.tbl-wrap thead .us { color: var(--orange-ink); }
.verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.verdict-note { width: auto; min-height: 0; padding: 28px 30px 26px; gap: 14px; }
.verdict-note h2 { font-size: 24px; }
.verdict-note ul, .pick ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.verdict-note li { font-size: 16px; line-height: 1.5; color: var(--ink); }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pick > div { padding: 24px 26px; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.pick h3 { font-size: 20px; margin-bottom: 12px; }
.pick li { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
@media (max-width: 760px) {
  .verdict, .pick { grid-template-columns: 1fr; gap: 24px; }
  .verdict-note { padding: 22px 20px; }
}

/* ---------- articles ---------- */
.answer { width: min(820px, 100%); min-height: 0; padding: 30px 32px 28px; gap: 10px; }
.answer-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-note); }
.answer-text { font-size: 20px; line-height: 1.5; font-weight: 500; }
.sources { font-size: 15.5px; }

/* ---------- examples gallery ---------- */
.ex-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 40px 28px; }
.ex .print-frame { aspect-ratio: 9 / 16; }
.ex:nth-child(odd) .print { transform: rotate(-1.2deg); }
.ex:nth-child(even) .print { transform: rotate(1deg); }
.ex figcaption { transform: none; }
.ex figcaption span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ex figcaption b { color: var(--ink); font-weight: 600; line-height: 1.35; }

/* ---------- tools ---------- */
.idea-form { grid-template-columns: auto minmax(0, 320px) auto minmax(0, 200px) auto; }
.pg-empty { grid-column: 1 / -1; padding: 18px 24px 10px; text-align: center; color: var(--ink-3); list-style: none; }
.grid-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.grid-add { cursor: pointer; }
.grid-shape { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.phone-grid { width: min(420px, 100%); margin-top: 24px; padding: 18px 0 8px; border-radius: 34px; border: 1px solid var(--line-2); background: var(--sheet); box-shadow: var(--print-shadow); }
.phone-grid.over { outline: 3px dashed var(--orange); outline-offset: 6px; }
.pg-head { display: flex; align-items: center; gap: 14px; padding: 0 18px 16px; }
.pg-head > span:last-child { display: flex; flex-direction: column; font-size: 13px; color: var(--ink-3); }
.pg-head b { color: var(--ink); font-size: 15px; }
.pg-avatar { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--peach), var(--sky)); }
.pg-cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pg-cells li { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--stone); cursor: grab; }
.pg-cells.tall li { aspect-ratio: 3 / 4; }
.pg-cells li.ph { cursor: default; background: repeating-linear-gradient(135deg, var(--stone) 0 10px, transparent 10px 20px); }
.pg-cells img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--media-chip); color: var(--media-ink); font-size: 16px; line-height: 1; cursor: pointer; }
@media (max-width: 960px) { .idea-form { grid-template-columns: 1fr; } }
