/* css/iceland.css: /iceland/, the "Have you been to Iceland?" page (4 Dec 2026).
   Colours come from css/tokens.css (linked first). Mobile first: most people arrive from an ad on a phone.
   The phone in the hero is drawn in em, so the whole screen scales with .ic-phone's font-size. */

.ic {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  --ic-display: 'Poppins', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --ic-night: #0B0F14;
}
.ic *, .ic *::before, .ic *::after { box-sizing: border-box; }
.ic img { max-width: 100%; }

.ic-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.ic-narrow { max-width: 760px; }

.ic-eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.ic-h2 {
  margin: 0 0 16px;
  font: 700 28px/1.2 var(--ic-display);
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.ic-hero { padding: 36px 0 56px; }
.ic-hero-grid { display: grid; gap: 40px; }
.ic-hero h1 {
  margin: 0 0 18px;
  font: 700 40px/1.08 var(--ic-display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.ic-lead { margin: 0 0 12px; font-size: 18px; line-height: 1.55; color: var(--text); }
.ic-lead b { font-weight: 600; }
.ic-sub { margin: 0 0 26px; color: var(--text-secondary); }

.ic-get { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.ic-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ic-badge { display: block; border-radius: 9px; transition: opacity .2s; }
.ic-badge:hover { opacity: .85; }
.ic-badge:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.ic-badge img { display: block; height: 48px; width: auto; }
/* On a phone, only its own store. js/iceland.js sets the class. */
.ic-on-ios .ic-badge--android, .ic-on-android .ic-badge--ios { display: none; }
.ic-qr { display: none; align-items: center; gap: 12px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); max-width: 210px; }
.ic-qr img { width: 76px; height: 76px; flex: none; border-radius: 8px; border: 1px solid var(--border); padding: 4px; background: var(--bg); }
.ic-free { margin: 14px 0 0; font-size: 14px; color: var(--text-secondary); }

/* ── The phone ────────────────────────────────────────────────────── */
.ic-hero-demo { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ic-phone {
  font-size: 12px;
  width: 23.4em;
  padding: .55em;
  border-radius: 3.3em;
  background: #141416;
  box-shadow: 0 30px 60px -30px rgba(11, 15, 20, .55), 0 0 0 1px rgba(0, 0, 0, .04);
}
.ic-screen {
  position: relative;
  aspect-ratio: 9 / 19.2;
  border-radius: 2.75em;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.35;
  isolation: isolate;
}
.ic-screen img { display: block; }
.ic-notch { position: absolute; z-index: 5; top: .75em; left: 50%; width: 7.6em; height: 2.1em; margin-left: -3.8em; border-radius: 1.05em; background: #141416; }
.ic-status {
  position: absolute; z-index: 4; top: 0; left: 0; right: 0; height: 3.6em;
  display: flex; align-items: center; justify-content: space-between; padding: 0 2.2em 0 2.5em;
  font-size: 1.05em; font-weight: 600; color: var(--text); transition: color .3s;
}
.ic-status-r { display: flex; align-items: flex-end; gap: .18em; height: .9em; }
.ic-status-r i { display: block; width: .26em; border-radius: .1em; background: currentColor; }
.ic-status-r i:nth-child(1) { height: .45em; }
.ic-status-r i:nth-child(2) { height: .65em; }
.ic-status-r i:nth-child(3) { height: .9em; }
.ic-screen[data-on="2"] .ic-status, .ic-screen[data-on="3"] .ic-status { color: #FFFFFF; }

.ic-scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 4.4em 1.5em 1.7em;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.ic-scene.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

.ic-app-title { margin: 0 0 .8em; font: 700 1.8em/1.15 var(--ic-display); letter-spacing: -0.02em; }
.ic-app-h { margin: 0 0 .35em; font: 600 1.3em/1.25 var(--ic-display); letter-spacing: -0.01em; }
.ic-app-p { margin: 0; font-size: 1.05em; line-height: 1.45; color: var(--text-secondary); }
.ic-app-btn {
  position: relative; overflow: hidden;
  display: block; margin-top: auto;
  padding: 1.05em; border-radius: 1.1em;
  background: var(--accent); color: #FFFFFF;
  font-size: 1.15em; font-weight: 600; text-align: center;
}
/* The finger: a ring that blooms on the button just before the next step. */
.ic-tap::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 3em; height: 3em; margin: -1.5em 0 0 -1.5em; border-radius: 50%;
  background: rgba(255, 255, 255, .5); opacity: 0;
}
.is-on .ic-tap::after { animation: icTap .9s ease-out 2.7s both; }
.ic-scene--trip.is-on .ic-tap::after { animation-delay: 3.3s; }
@keyframes icTap { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }

/* 1 · photos */
.ic-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3em; margin-bottom: 1.3em; border-radius: 1.2em; overflow: hidden; }
.ic-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-page); }
.is-on .ic-photos img { animation: icPop .5s cubic-bezier(.2, .8, .3, 1.2) both; }
.is-on .ic-photos img:nth-child(2) { animation-delay: .07s; }
.is-on .ic-photos img:nth-child(3) { animation-delay: .14s; }
.is-on .ic-photos img:nth-child(4) { animation-delay: .21s; }
.is-on .ic-photos img:nth-child(5) { animation-delay: .28s; }
.is-on .ic-photos img:nth-child(6) { animation-delay: .35s; }
.is-on .ic-photos img:nth-child(7) { animation-delay: .42s; }
.is-on .ic-photos img:nth-child(8) { animation-delay: .49s; }
.is-on .ic-photos img:nth-child(9) { animation-delay: .56s; }
@keyframes icPop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes icUp { from { opacity: 0; transform: translateY(.9em); } to { opacity: 1; transform: none; } }

/* 2 · the trips it found */
.ic-found {
  display: flex; align-items: center; gap: .9em;
  margin-bottom: .7em; padding: .7em .8em .7em .7em;
  border: 1.5px solid var(--border); border-radius: 1.2em; background: var(--bg);
}
.ic-found-pics { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; flex: none; width: 4.8em; height: 4.8em; border-radius: .85em; overflow: hidden; }
.ic-found-pics img { width: 100%; height: 100%; object-fit: cover; }
.ic-found-pics img:first-child { grid-row: span 2; }
.ic-found-txt { min-width: 0; }
.ic-found-txt b { display: block; font-size: 1.12em; font-weight: 600; }
.ic-found-txt span { display: block; margin-top: .2em; font-size: .98em; color: var(--text-muted); }
.ic-check {
  display: grid; place-items: center; flex: none; margin-left: auto;
  width: 1.9em; height: 1.9em; border-radius: 50%;
  border: 1.5px solid var(--border); color: transparent;
}
.ic-check svg { width: 1.1em; height: 1.1em; }
.is-on .ic-found { animation: icUp .45s ease both; }
.is-on .ic-found:nth-child(3) { animation-delay: .12s; }
.is-on .ic-found:nth-child(4) { animation-delay: .24s; }
.is-on .ic-found.is-pick { animation: icUp .45s ease both, icPick .3s ease 1.3s forwards; }
.is-on .ic-found.is-pick .ic-check { animation: icChecked .3s ease 1.3s forwards; }
@keyframes icPick { to { border-color: var(--accent); background: var(--accent-light); } }
@keyframes icChecked { to { border-color: var(--accent); background: var(--accent); color: #FFFFFF; } }

/* 3 · the Past trip */
.ic-scene--trip { padding: 0; }
.ic-cover { position: relative; flex: none; height: 36%; overflow: hidden; }
.ic-cover img { width: 100%; height: 100%; object-fit: cover; }
.ic-cover::after { content: ""; position: absolute; inset: 0 0 auto; height: 45%; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0)); }
.is-on .ic-cover img { animation: icZoom 4.2s ease-out both; }
@keyframes icZoom { from { transform: scale(1.12); } to { transform: none; } }
.ic-chip {
  position: absolute; left: 1.3em; bottom: 1.1em;
  padding: .4em .85em; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--text);
  font-size: .95em; font-weight: 600;
}
.ic-trip { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 1.15em 1.5em 1.7em; }
.ic-trip-title { margin: 0 0 .2em; font: 700 1.5em/1.2 var(--ic-display); letter-spacing: -0.02em; }
.ic-trip-meta { margin: 0 0 .9em; font-size: 1em; color: var(--text-muted); }
.ic-days { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-direction: column; gap: .6em; }
.ic-days li { display: flex; align-items: center; gap: .85em; }
.ic-days img { flex: none; width: 3em; height: 3em; border-radius: .65em; object-fit: cover; }
.ic-days b { display: block; font-size: .85em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.ic-days span span { display: block; font-size: 1.05em; font-weight: 500; }
.is-on .ic-days li { animation: icUp .4s ease both; }
.is-on .ic-days li:nth-child(1) { animation-delay: .35s; }
.is-on .ic-days li:nth-child(2) { animation-delay: .7s; }
.is-on .ic-days li:nth-child(3) { animation-delay: 1.05s; }
.is-on .ic-days li:nth-child(4) { animation-delay: 1.4s; }

/* 4 · picked: a lock screen with the email and the card */
/* isolation: its own stacking context, so the lock-screen photo (z-index -1) sits on the night colour, not under it
   (once the fade-in ends at opacity 1 the scene would otherwise have none, and the photo went behind it). */
.ic-scene--gift { background: var(--ic-night); color: #FFFFFF; align-items: stretch; isolation: isolate; }
.ic-lock-bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.ic-lock-time { margin: .5em 0 1.4em; font: 600 4.6em/1 var(--ic-display); letter-spacing: -0.02em; text-align: center; }
.ic-notif {
  display: flex; align-items: flex-start; gap: .8em;
  padding: .95em 1em; border-radius: 1.3em;
  background: rgba(255, 255, 255, .9); color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ic-notif-icon { flex: none; width: 2.6em; height: 2.6em; border-radius: .65em; }
.ic-notif-mail { display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.ic-notif-mail svg { width: 1.45em; height: 1.45em; }
.ic-notif i { display: block; margin-bottom: .2em; font-style: normal; font-size: .8em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.ic-notif b { display: block; font-size: 1.05em; font-weight: 600; }
.ic-notif span span { display: block; margin-top: .15em; font-size: .98em; line-height: 1.35; color: var(--text-secondary); }
.ic-giftcard {
  margin-top: auto; overflow: hidden;
  border-radius: 1.3em; background: var(--bg); color: var(--text);
  box-shadow: 0 1.2em 2.4em -1em rgba(0, 0, 0, .6);
}
.ic-giftcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ic-giftcard-txt { display: block; padding: .9em 1.1em 1em; }
.ic-giftcard-txt span { display: block; font-size: .85em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.ic-giftcard-txt b { display: block; margin-top: .2em; font: 600 1.2em/1.25 var(--ic-display); }
.is-on .ic-notif { animation: icDrop .55s cubic-bezier(.2, .8, .3, 1.1) .35s both; }
.is-on .ic-giftcard { animation: icUp .6s ease 1.2s both; }
@keyframes icDrop { from { opacity: 0; transform: translateY(-1.6em) scale(.96); } to { opacity: 1; transform: none; } }

/* ── The four steps under the phone ───────────────────────────────── */
.ic-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 420px; }
.ic-step {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text-secondary);
  font: 500 14px/1.3 'Inter', ui-sans-serif, system-ui, sans-serif; text-align: left; cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.ic-step span {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-page); color: var(--text-secondary); font-size: 12px; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.ic-step:hover { border-color: var(--text-dim); }
.ic-step:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ic-step.is-on { border-color: var(--accent); background: var(--accent-light); color: var(--text); }
.ic-step.is-on span { background: var(--accent); color: #FFFFFF; }

/* Pause / Play under the steps (js/iceland.js shows it, unless "reduce motion" is on). */
.ic-play {
  display: inline-flex; align-items: center; gap: 8px; margin-top: -10px;
  padding: 6px 12px; border: 0; border-radius: 999px; background: none;
  color: var(--text-secondary); font: 500 13px/1 'Inter', ui-sans-serif, system-ui, sans-serif; cursor: pointer;
}
.ic-play[hidden] { display: none; }
.ic-play:hover { color: var(--text); background: var(--bg-page); }
.ic-play:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ic-play-icon { position: relative; width: 10px; height: 10px; flex: none; }
.ic-play-icon::before, .ic-play-icon::after { content: ''; position: absolute; top: 0; width: 3px; height: 10px; border-radius: 1px; background: currentColor; }
.ic-play-icon::before { left: 1px; }
.ic-play-icon::after { right: 1px; }
.ic-play.is-stopped .ic-play-icon::before { left: 1px; width: 0; height: 0; border-radius: 0; background: none; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }
.ic-play.is-stopped .ic-play-icon::after { display: none; }
/* Read by screen readers only. */
.ic-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── How it works ─────────────────────────────────────────────────── */
.ic-how { padding: 56px 0; background: var(--bg-page); }
.ic-how-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.ic-how-list li { padding: 24px; border-radius: var(--radius-lg); background: var(--bg); }
.ic-num {
  display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: 15px; font-weight: 700;
}
.ic-how-list h3 { margin: 0 0 6px; font: 600 19px/1.3 var(--ic-display); letter-spacing: -0.01em; }
.ic-how-list p { margin: 0; color: var(--text-secondary); }

/* ── The gift card ────────────────────────────────────────────────── */
.ic-gift { padding: 64px 0; }
.ic-gift-grid { display: grid; gap: 28px; align-items: center; }
.ic-gift-photo { margin: 0; }
.ic-gift-photo img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 521; object-fit: cover; border-radius: var(--radius-lg); background: var(--ic-night); }
.ic-gift-copy p { margin: 0 0 14px; color: var(--text-secondary); }
.ic-gift-copy p.ic-eyebrow { margin-bottom: 12px; color: var(--accent); }
.ic-gift-copy p:last-child { margin-bottom: 0; }

/* ── Questions ────────────────────────────────────────────────────── */
.ic-faq { padding: 56px 0; border-top: 1px solid var(--border); }
.ic-faq details { border-bottom: 1px solid var(--border); }
.ic-faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 18px 40px 18px 0;
  font: 600 17px/1.4 'Inter', ui-sans-serif, system-ui, sans-serif; color: var(--text);
}
.ic-faq summary::-webkit-details-marker { display: none; }
.ic-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg); transition: transform .2s;
}
.ic-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ic-faq summary:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.ic-faq details p { margin: 0 0 18px; color: var(--text-secondary); }

/* ── The last call ────────────────────────────────────────────────── */
.ic-end { padding: 0 0 72px; }
.ic-end-card {
  display: grid; gap: 22px;
  padding-top: 32px; padding-bottom: 32px;
  border-radius: var(--radius-lg); background: var(--accent-light);
}
.ic-end .ic-wrap.ic-end-card { max-width: 1120px; margin: 0 20px; }
.ic-end-card p { margin: 0; color: var(--text-secondary); }

/* ── Bigger screens ───────────────────────────────────────────────── */
@media (min-width: 720px) {
  .ic-wrap { padding: 0 40px; }
  .ic-hero { padding: 56px 0 72px; }
  .ic-hero h1 { font-size: 54px; }
  .ic-h2 { font-size: 34px; }
  .ic-how { padding: 80px 0; }
  .ic-how-list { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .ic-gift { padding: 88px 0; }
  .ic-gift-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .ic-faq { padding: 80px 0; }
  .ic-end { padding-bottom: 96px; }
  .ic-end .ic-wrap.ic-end-card { margin: 0 auto; width: calc(100% - 80px); padding: 40px 48px; grid-template-columns: 1fr auto; align-items: center; }
  .ic-steps { grid-template-columns: repeat(4, auto); max-width: none; width: auto; }
}
@media (min-width: 960px) {
  .ic-hero-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: center; }
  .ic-hero h1 { font-size: 62px; }
  .ic-lead { font-size: 20px; }
  .ic-phone { font-size: 13px; }
  .ic-steps { grid-template-columns: 1fr 1fr; max-width: 400px; }
}
/* A computer (a mouse, a wide screen): both stores and the QR code. */
@media (hover: hover) and (pointer: fine) and (min-width: 960px) {
  .ic-qr { display: flex; }
}

/* ── Less motion: the steps still change, with no movement inside them. ── */
@media (prefers-reduced-motion: reduce) {
  .ic-scene, .ic-scene.is-on { transition: none; }
  .ic *, .ic *::before, .ic *::after { animation: none !important; }
  .ic-found.is-pick { border-color: var(--accent); background: var(--accent-light); }
  .ic-found.is-pick .ic-check { border-color: var(--accent); background: var(--accent); color: #FFFFFF; }
}

/* ── The contact form the footer opens ────────────────────────────── */
.ct-modal-backdrop { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.ct-modal-backdrop.open { display: flex; }
.ct-modal { position: relative; width: 92%; max-width: 420px; padding: 2.25rem 2rem; border-radius: 20px; background: var(--bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .18); font-family: 'Inter', sans-serif; }
.ct-modal-close { position: absolute; top: 1rem; right: 1rem; padding: 0; border: none; background: none; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; }
.ct-modal-close:hover { color: var(--text); }
.ct-modal h3 { margin: 0 0 .35rem; font: 700 1.3rem/1.3 var(--ic-display); letter-spacing: -0.02em; color: var(--text); }
.ct-modal p { margin: 0 0 1.25rem; font-size: .875rem; line-height: 1.5; color: var(--text-secondary); }
.ct-modal form { display: flex; flex-direction: column; gap: .6rem; }
.ct-modal input, .ct-modal textarea { width: 100%; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: 10px; outline: none; background: var(--bg-page); color: var(--text); font: .9rem 'Inter', sans-serif; transition: border-color .2s; }
.ct-modal input:focus, .ct-modal textarea:focus { border-color: var(--text); background: var(--bg); }
.ct-modal textarea { min-height: 100px; resize: vertical; }
.ct-modal-btn { width: 100%; margin-top: .3rem; padding: .85rem; border: none; border-radius: 10px; background: var(--text); color: #FFFFFF; font: 600 .95rem 'Inter', sans-serif; cursor: pointer; }
.ct-modal-btn:hover { opacity: .85; }
.ct-modal .ct-modal-small { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.ct-modal .ct-modal-small a { color: inherit; text-decoration: underline; }
