/* Brand Discovery — IslaIntel editorial worksheet */

:root {
  --teal: #2D92B0;
  --mid-teal: #1F7088;
  --dark-teal: #1A5570;
  --slate: #1C3A52;
  --cyan: #D6EFF5;
  --pale: #EAF6FB;
  --ghost: #F4F7F9;
  --coral: #F26B5E;
  --coral-hover: #E05548;
  --ink: #1C3A52;
  --mute: #5A6B7A;
  --line: #c5d8e0;
  --line-strong: #9bb8c4;
  --card: #fffefa;
  --canvas: #e5f0f3;
  --control: #edf5f7;
  --warm: #f7eee7;
  --sand: #f1dfca;
  --danger: #b42318;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: Geist, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 1px solid var(--slate);
  outline-offset: 1px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  display: none;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 28px;
  background: var(--slate);
  border-bottom: 0;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mark img { width: 30px; height: auto; }

.top-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9d6df;
}

.resume {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--cyan);
  background: var(--pale);
  font-size: 14px;
}

.resume p { margin: 0 auto 0 0; }

.resume button,
.text-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Layout */
.sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 30px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero,
.block { scroll-margin-top: 80px; }

.hero,
.block {
  background: var(--card);
  border: 0;
  padding: 34px 38px 38px;
  border-radius: 3px 20px 4px 16px;
  box-shadow: 0 12px 30px rgba(28, 58, 82, 0.08);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: #fff;
  border-radius: 20px 4px 20px 4px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -52px;
  top: -62px;
  width: 210px;
  height: 210px;
  border: 28px solid rgba(45, 146, 176, 0.32);
  border-radius: 50%;
}

.hero .kicker { color: #7ed0e4; }
.hero h1 { color: #fff; max-width: 14em; position: relative; z-index: 1; }
.hero h1 em { color: #7ed0e4; }
.hero .lede { color: #c9dce3; position: relative; z-index: 1; }
.hero .get { border-color: #35566d; position: relative; z-index: 1; }
.hero .get li { color: #e5eff2; }
.hero .get strong { color: #fff; }

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--slate);
}

h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--teal);
}

.lede {
  margin: 0 0 20px;
  max-width: 38em;
  color: var(--mute);
}

.get {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  display: grid;
  gap: 10px;
  border-top: 1px solid #eadfd0;
  max-width: 40em;
}

.get li { color: var(--ink); }
.get strong { font-weight: 600; color: var(--slate); }

/* Section headers */
.block-h {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7e6eb;
}

.block-h h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: var(--slate);
}

.block-h .n {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.72em;
  color: var(--teal);
  margin-right: 0.28em;
}

.need {
  margin-left: auto;
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: #708897;
  border: 0;
  padding: 0;
}

.hint {
  margin: 14px 0 18px;
  color: var(--mute);
  max-width: 46em;
}

.hint.tight { margin-top: 16px; }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.field label em {
  font-style: normal;
  font-weight: 400;
  color: var(--mute);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #bad0d8;
  background: #fff;
  padding: 12px 13px;
  border-radius: 7px;
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--slate);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.split3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

/* Voice / goals */
.voice-row,
.goal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.goal,
.type-chip {
  position: relative;
  appearance: none;
  background: var(--sand);
  border: 0;
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 7px;
  color: var(--ink);
}

.chip:hover,
.goal:hover,
.type-chip:hover {
  background: #e7cdb0;
}

.chip[aria-pressed="true"],
.goal[aria-pressed="true"],
.type-chip[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.chip[aria-pressed="true"]::after,
.goal[aria-pressed="true"]::after,
.type-chip[aria-pressed="true"]::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 0 2px 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* Colors */
.color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.color-card {
  position: relative;
  background: var(--control);
  border: 0;
  padding: 12px;
  border-radius: 12px 5px 12px 5px;
}

.color-card .sw {
  position: relative;
  height: 88px;
  margin-bottom: 10px;
  border: 3px solid #fff;
  border-radius: 8px 3px 8px 3px;
  background: repeating-conic-gradient(#d9e4ea 0% 25%, #f4f7f9 0% 50%) 50% / 12px 12px;
  cursor: pointer;
}

.color-card .sw:hover {
  border-color: var(--slate);
}

.color-card input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.color-card-meta label,
.color-name {
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2px;
}

.color-name {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  margin-bottom: 4px;
}

.color-name:focus {
  outline: none;
  border-bottom-color: var(--teal);
}

.color-how {
  display: block;
  font-size: 12px;
  color: var(--mute);
  margin-bottom: 8px;
  line-height: 1.35;
}

.hex-input {
  width: 100%;
  border: 1px solid #bad0d8;
  background: #fff;
  padding: 7px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hex-input:focus {
  outline: none;
  border-color: var(--teal);
}

.color-remove {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 8px;
  font-size: 12px;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.color-remove:hover { color: var(--coral); }

.color-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
}

.ghost-btn,
.own-fonts-toggle {
  appearance: none;
  background: var(--sand);
  border: 0;
  color: var(--slate);
  padding: 8px 14px;
  min-height: 38px;
  border-radius: 7px;
}

.ghost-btn:hover,
.own-fonts-toggle:hover { background: #e7cdb0; }

.own-fonts-toggle[aria-pressed="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.palette-used {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--mid-teal);
}

/* Palette dialog */
.palette-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: var(--card);
  box-shadow: 0 24px 70px rgba(13, 42, 60, 0.28);
}

.palette-dialog::backdrop {
  background: rgba(28, 58, 82, 0.42);
}

.palette-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px;
  background: #fff;
  border-bottom: 1px solid var(--cyan);
}

.palette-dialog-lede {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 14px;
  max-width: 38em;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}

.palette {
  appearance: none;
  text-align: left;
  background: #fff;
  border: 1px solid #e0d8cc;
  padding: 12px;
  border-radius: 10px;
}

.palette:hover { border-color: var(--slate); }

.palette[aria-pressed="true"] {
  border-color: var(--slate);
}

.swatch-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  height: 48px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}

.swatch-row b { display: block; }

.palette strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.palette small {
  display: block;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 3px;
}

/* Type */
.type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.type-preview {
  margin-top: 16px;
  padding: 22px 24px 24px;
  background: var(--warm);
  border-left: 5px solid var(--coral);
  border-radius: 2px 14px 14px 2px;
}

.type-preview-label {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--mute);
}

.type-specimen {
  max-width: 540px;
}

.specimen-overline {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-hover);
}

.specimen-heading {
  margin: 0 0 6px;
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--slate);
}

.specimen-body {
  margin: 14px 0 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--mute);
}

.specimen-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: #70828d;
}

.own-fonts { margin-top: 16px; }

/* Looks — paper samples */
.look-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.look {
  appearance: none;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
}

.look .swatch {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 150px;
  padding: 18px 20px;
  border-radius: 10px;
  overflow: hidden;
}

.look .swatch em {
  font-style: italic;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.05;
  font-weight: 400;
}

.swatch-quiet-page { background: #efe4d0; color: #2c2418; }
.swatch-gallery {
  background: #f7f4ee;
  color: #6a645a;
  align-items: flex-start;
}
.look .swatch-gallery em {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--font);
}
.swatch-linen { background: #e8d2b4; color: #4a2e1c; }
.swatch-private { background: #1a1814; color: #d4c4a0; }
.look .swatch-private em {
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.swatch-signal { background: #1c3a52; color: #f3efe6; }
.look .swatch-signal em {
  font-style: normal;
  font-family: var(--font);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.swatch-garden { background: #c5d1b0; color: #2a3320; }

.look-copy {
  display: block;
  padding: 10px 4px 0;
  min-height: 4.6em;
}

.look-copy b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.look-copy small {
  display: block;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.4;
  margin-top: 3px;
}

.look[aria-pressed="true"] .look-copy b {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Submit */
.submit-row { margin-top: 22px; }

.submit {
  appearance: none;
  border: 1px solid var(--coral);
  background: var(--coral);
  color: #fff;
  padding: 12px 20px;
  font-weight: 600;
  border-radius: 999px;
}

.submit:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.submit:disabled { opacity: 0.5; cursor: not-allowed; }

.submit-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mute);
}

.form-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 14px;
}

.field-error input,
.field-error textarea { border-color: var(--danger); }

.block.is-invalid {
  border-color: var(--coral);
}

/* On file */
.file {
  position: sticky;
  top: 76px;
  align-self: start;
}

.file-kicker {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.dossier {
  background: var(--slate);
  color: #f3f3ef;
  border: 1px solid var(--slate);
  padding: 16px 16px 14px;
  border-radius: 12px;
}

.file-title {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 18px;
}

.file-note {
  margin: 0 0 12px;
  font-size: 11px;
  color: #9eb0bc;
}

.file-dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.file-dl div {
  display: grid;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid #2d4d64;
}

.file-dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.file-dl dt {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8aa0ae;
}

.file-dl dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.file-swatches i {
  width: 16px;
  height: 16px;
  display: block;
  background: #2d4d64;
  border: 1px solid #3a5a70;
}

.file-hex {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: #8aa0ae;
}

/* Done */
.done {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.done-inner {
  background: #fff;
  border: 1px solid #e0d8cc;
  padding: 28px;
  border-radius: 14px;
}

.done-file-wrap { margin-top: 24px; }
.done-file-wrap .file-kicker { display: none; }

body.is-done .sheet,
body.is-done .resume { display: none; }

@media print {
  .top, .resume, .main, .file-kicker, .done h1, .done .lede, .done .kicker { display: none !important; }
}

@media (max-width: 960px) {
  .sheet {
    grid-template-columns: 1fr;
    padding: 16px 14px 80px;
    gap: 0;
  }
  .file { display: none; }
  .top { padding: 12px 14px; }
  .need { margin-left: 0; }
  .hero,
  .block { padding: 22px 18px 24px; }
  .look-grid,
  .color-grid,
  .split,
  .split3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .look-grid,
  .color-grid,
  .palette-grid,
  .split,
  .split3 { grid-template-columns: 1fr; }
}
