/* styles.css — ウラーナル物語 公式サイト共通スタイル */

:root {
  --font-serif-jp: "Shippori Mincho B1", "Noto Serif JP", "Hiragino Mincho ProN", "游明朝", serif;
  --font-serif-body: "Noto Serif JP", "Shippori Mincho B1", "Hiragino Mincho ProN", serif;
  --font-serif-en: "Cormorant Garamond", "EB Garamond", "Shippori Mincho B1", serif;
  --font-serif: var(--font-serif-jp);

  /* デフォルトは「夜想」テーマ（applyThemeで上書き） */
  --bg: #101a30;
  --bgDeep: #0a1326;
  --paper: #162242;
  --ink: #faf8f3;
  --inkDim: #f2f0eb;
  --inkMute: #cac8c3;
  --heading: #f5ecd9;
  --accent: #d4b676;
  --accentSoft: #e8c885;
  --accentDeep: #b89854;
  --line: rgba(212, 182, 118, 0.28);
  --lineSoft: rgba(245, 236, 217, 0.12);
  --rose: #c47a82;
  --sage: #9aa68a;
  --cardBg: rgba(28, 42, 78, 0.55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* sticky ヘッダー (72px) + 余白。ヘッダー裏に隠れないように */
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bgDeep);
  color: var(--ink);
  font-family: var(--font-serif-body);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.06em; /* 本文の字間（≒1px @16px）。見出し/ナビ/ボタンは各自で上書き済み */
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 背景テクスチャ — テーマごと */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .5;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255,255,255,0.04) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.03) 0, transparent 45%);
  mix-blend-mode: screen;
}
[data-theme="kosho"] body::after {
  opacity: 1;
  background-image:
    radial-gradient(circle at 30% 20%, rgba(180,150,100,0.06) 0, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(140,90,94,0.05) 0, transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.3  0 0 0 0 0.25  0 0 0 0 0.18  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

#root { position: relative; z-index: 1; }

/* タイポ */
h1, h2, h3, h4 {
  font-family: var(--font-serif-jp);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
  margin: 0;
  /* 見出しは世界観のクリーム（温白）で固定。本文の白寄り（--ink）とは分ける */
  color: var(--heading);
}

.eyebrow {
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-size: 14px;
  text-transform: lowercase;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

/* レイアウト */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; padding: 120px 0; }
section + section { padding-top: 0; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--lineSoft);
}
.site-header .container {
  display: flex; align-items: center; gap: 16px;
  height: 72px;
}
/* ブランドを左端に固定し、ナビ・書体トグル・ハンバーガーは右側にまとめる。
   フッターの .brand に影響しないようヘッダー内に限定する。 */
.site-header .brand { margin-right: auto; }
.brand {
  font-family: var(--font-serif-jp);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.nav {
  display: flex; gap: 32px; align-items: center;
  font-size: 13.5px; letter-spacing: 0.12em;
  font-family: var(--font-serif-jp);
}
.nav a {
  color: var(--inkDim);
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }
.nav .cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 12.5px;
}
.nav .cta:hover { background: var(--accent); color: var(--bgDeep); }

/* ── ハンバーガー（モバイル時のみ表示）──
   site.js が .site-header .container に自動挿入する。デスクトップでは非表示。 */
.nav-toggle {
  display: none; /* デスクトップでは隠す。モバイルの media query で出す */
  align-items: center; justify-content: center;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--inkDim);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle .bars {
  position: relative;
  width: 18px; height: 12px;
  display: block;
}
.nav-toggle .bars span {
  position: absolute; left: 0;
  width: 100%; height: 1.5px; border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5px; }
.nav-toggle .bars span:nth-child(3) { top: 10px; }
/* メニュー展開中は × に変形 */
.site-header[data-menu-open] .nav-toggle .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.site-header[data-menu-open] .nav-toggle .bars span:nth-child(2) { opacity: 0; }
.site-header[data-menu-open] .nav-toggle .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 1050px) {
  .nav-toggle { display: inline-flex; }

  /* .nav をヘッダー直下のドロップダウンパネルに変換（ナビリンク・CTA を内包）。
     書体トグルはヘッダーバーに残すのでパネルには入らない。
     既定は非表示で、ハンバーガーで data-menu-open を立てると展開する。 */
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    /* 下部 padding を広めにとり、CTA（はじめる）の丸いボーダー下端が
       パネル端（overflow クリップ）で見切れないようにする */
    padding: 12px 24px 32px;
    /* 不透明な背景にして、下のページのグラデーションが透けて
       下部の CTA が見切れて見える問題を防ぐ */
    background: var(--bg);
    border-bottom: 1px solid var(--lineSoft);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
    /* メニューが縦に長い端末でも下部ボタンが隠れないよう、はみ出したらスクロール */
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .site-header[data-menu-open] .nav { display: flex; }
  .nav a {
    padding: 13px 6px;
    border-bottom: 1px solid var(--lineSoft);
    font-size: 14.5px;
  }
  .nav .cta {
    margin-top: 14px;
    padding: 13px;
    text-align: center;
    font-size: 14px;
    /* .nav a の divider（lineSoft の下線）を上書きし、ピルの accent 枠を下辺にも戻す */
    border-bottom: 1px solid var(--accent);
  }
}

/* ── 書体トグル（明朝 ⇄ ゴシック）──
   site.js がヘッダーバー（.container 内・ナビの手前）に自動挿入する。
   デスクトップ・モバイルとも常にヘッダーバー上に表示され、ハンバーガーの中には入らない。 */
.font-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--inkDim);
  border-radius: 999px;
  padding: 6px 13px;
  font-family: var(--font-serif-jp);
  font-size: 12.5px; letter-spacing: 0.1em;
  cursor: pointer; transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.font-toggle:hover { border-color: var(--accent); color: var(--accent); }
.font-toggle-glyph { font-size: 15px; line-height: 1; }

/* 狭い画面では書体トグルのラベル（「ゴシック」/「明朝」）を隠し、
   「あ」グリフだけのコンパクトな丸ボタンにする。
   これでヘッダー（ロゴ＋トグル＋ハンバーガー）が 1 行に収まり、折り返さない。 */
@media (max-width: 480px) {
  .site-header .container { gap: 10px; }
  .font-toggle {
    gap: 0;
    padding: 0;
    width: 42px; height: 42px;
    justify-content: center;
  }
  .font-toggle-label { display: none; }
}

/* ── ゴシックモード ──
   本文・UI・ボタン・ナビ・小見出し（h3/h4）・FAQ などを一括でゴシックへ。
   custom property を差し替えるだけで、各要素が参照する var() 越しに伝播する。
   大きな見出し（h1 / h2）・ブランドロゴは下で明朝に戻す（世界観維持）。
   装飾の欧文（--font-serif-en = Cormorant）は据え置き。 */
:root { --font-gothic: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; }
html[data-font="gothic"] {
  --font-serif-jp: var(--font-gothic);
  --font-serif-body: var(--font-gothic);
}
/* 大きな見出しとブランドロゴは明朝のまま（var ではなく実体指定で復帰）。 */
html[data-font="gothic"] h1,
html[data-font="gothic"] h2,
html[data-font="gothic"] .brand {
  font-family: "Shippori Mincho B1", "Noto Serif JP", "Hiragino Mincho ProN", "游明朝", serif;
}

/* CTA */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-serif-jp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.16em;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--bgDeep);
  background: var(--accent);
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--accentSoft); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }

/* ストア・ボタン */
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink);
  color: var(--bgDeep);
  padding: 12px 22px;
  border-radius: 12px;
  min-width: 200px;
  transition: all .25s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.store-btn .store-label { font-size: 11px; opacity: .7; letter-spacing: 0.1em; line-height: 1; }
.store-btn .store-name {
  font-family: var(--font-serif-jp); font-weight: 700; font-size: 17px; letter-spacing: 0.05em; line-height: 1.2;
  margin-top: 4px;
}

[data-theme="kosho"] .store-btn { background: var(--accent); color: var(--bg); }

/* 近日公開（押せない）状態のストアボタン */
.store-btn.is-soon {
  opacity: .55;
  cursor: default;
  filter: grayscale(.3);
}
.store-btn.is-soon:hover { transform: none; box-shadow: none; }
.store-soon-note {
  margin-top: 14px;
  color: var(--inkMute);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* スターフィールド */
.starfield {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.starfield .star {
  position: absolute;
  color: var(--accentSoft);
  opacity: .6;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* セクション共通 */
.section-head {
  text-align: center;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 18px;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--inkDim);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* カード */
.card {
  background: var(--cardBg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 32px;
  position: relative;
  transition: all .3s ease;
}
.card::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid var(--lineSoft);
  pointer-events: none;
  border-radius: 2px;
}
.card:hover { border-color: var(--accent); }

[data-theme="kosho"] .card {
  background: var(--paper);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 8px 24px rgba(31,24,16,.06);
}

/* フッター */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--lineSoft);
  padding: 80px 0 60px;
  color: var(--inkMute);
  font-size: 13px;
  background: var(--bgDeep);
}
.site-footer .container { display: flex; flex-direction: column; gap: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--inkDim); transition: color .2s; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--lineSoft);
  font-size: 12px; letter-spacing: 0.08em;
}

/* スクロールバー（穏やかに） */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--lineSoft); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--line); }

/* 法務ページ用 */
.legal-page {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 120px;
}
.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  text-align: center;
  margin-bottom: 12px;
}
.legal-page .legal-eyebrow {
  text-align: center; display: block;
  margin-bottom: 8px;
}
.legal-page .legal-meta {
  text-align: center;
  color: var(--inkMute);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  margin-bottom: 48px;
}
.legal-body {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--inkDim);
}
.legal-body h2 {
  font-size: 19px;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lineSoft);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.legal-body h2::before {
  content: "❋";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 400;
  opacity: .8;
}
.legal-body p + p { margin-top: 16px; }
.legal-body ul, .legal-body ol { padding-left: 22px; margin: 14px 0; }
.legal-body li { margin-bottom: 8px; }
.legal-body .info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
}
.legal-body .info-table th,
.legal-body .info-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid var(--lineSoft);
  vertical-align: top;
  font-weight: 400;
}
.legal-body .info-table th {
  width: 220px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 13px;
}

/* ボタン: 戻る */
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--inkDim);
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

/* ─────────────────────────────────────────────────────────
   iPhone フレーム
   ───────────────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19.5;
  border-radius: 14% / 6.5%;
  padding: 12px;
  background:
    linear-gradient(135deg,
      #f5f1e8 0%,
      #ffffff 18%,
      #e8e3d8 50%,
      #ffffff 82%,
      #efeae0 100%);
  box-shadow:
    /* 外側のアンビエント・シャドウ */
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 18px 40px rgba(0, 0, 0, 0.35),
    /* 縁のメタリック・リム */
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 0 0 2px rgba(180, 170, 145, 0.4),
    /* 上部のハイライト */
    0 -2px 6px rgba(255, 255, 255, 0.5) inset;
}

/* メタリックなチタンサイドの質感 */
.iphone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(220, 213, 195, 0) 8%,
      rgba(220, 213, 195, 0) 92%,
      rgba(255, 255, 255, 0.4) 100%);
  pointer-events: none;
}

.iphone-screen {
  /* フレームの padding(12px) 分だけ内側に絶対配置で敷く。
     height:100% にすると、Safari は親(.iphone-frame)の高さが
     aspect-ratio 由来のとき割合高さを解決できず auto 扱いになり、
     スクリーンが <img> の実寸（縦長）まで伸びて枠下にはみ出す。
     inset 指定なら割合高さに依存せず確実に padding 内へ収まる。 */
  position: absolute;
  inset: 12px;
  border-radius: 12% / 5.7%;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 2px #0a0a0a inset,
    0 4px 12px rgba(0, 0, 0, 0.5) inset;
  /* Safari の角丸クリップ漏れ対策で合成レイヤーへ昇格 */
  transform: translateZ(0);
}

.iphone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.iphone-island {
  position: absolute;
  top: 2.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 4.0%;
  background: #000;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}

/* サイドボタン */
.iphone-btn {
  position: absolute;
  background:
    linear-gradient(90deg,
      rgba(180, 170, 145, 0.6),
      rgba(245, 240, 226, 0.95),
      rgba(180, 170, 145, 0.6));
  border-radius: 2px;
}
.iphone-btn-power {
  right: -2px; top: 28%;
  width: 3px; height: 12%;
}
.iphone-btn-vol-up {
  left: -2px; top: 22%;
  width: 3px; height: 7%;
}
.iphone-btn-vol-down {
  left: -2px; top: 32%;
  width: 3px; height: 7%;
}
.iphone-btn-mute {
  left: -2px; top: 16%;
  width: 3px; height: 4%;
}

/* ─────────────────────────────────────────────────────────
   レスポンシブ
   ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  section { padding: 80px 0; }
  .container, .container-narrow { padding: 0 24px; }

  /* ヒーローを縦積み */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    text-align: center;
  }
  .hero-grid > div:first-child p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-grid .eyebrow {
    justify-content: center;
  }
  .hero-grid > div:first-child > div[style*="display: flex"] {
    justify-content: center;
  }
  .iphone-frame {
    max-width: 280px;
  }

  /* セクションヘッド */
  .section-head { margin-bottom: 48px; }
  .section-head h2 br { display: none; }

  /* 使い方の縦線 */
  #how + section, #how > .container > div:last-child > div {
    padding: 20px 0 !important;
  }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .container, .container-narrow { padding: 0 20px; }

  /* ヘッダー：ロゴ＋ハンバーガー。メニュー内容はパネルに集約（.nav） */
  .site-header .container { height: 60px; }
  .brand { font-size: 17px; letter-spacing: 0.08em; }
  .nav { padding: 12px 20px 30px; }

  /* セクションマーク */
  .section-head h2 { font-size: clamp(22px, 6vw, 32px) !important; }

  /* カード余白 */
  .card { padding: 28px 22px; }

  /* 占いカード：縦並びに。アイコンとタイトルは左右中央（本文は左寄せのまま） */
  #divinations .card {
    flex-direction: column !important;
    gap: 16px !important;
  }
  #divinations .card > div:first-child {
    margin-bottom: 4px;
    align-self: center; /* アイコンを中央へ */
  }
  /* タイトルブロック（英字ラベル + h3）を中央寄せ。説明文 p は左寄せのまま残す */
  #divinations .card > div:last-child > div,
  #divinations .card > div:last-child > h3 {
    text-align: center;
  }

  /* 特徴カード：スマホではアイコンとタイトルを左右中央（本文・番号は左寄せのまま） */
  #features .card > div:first-child,  /* アイコン（中の svg を中央へ） */
  #features .card > h3 {
    text-align: center;
  }

  /* 使い方：番号サークルを小さく */
  #how .container > div > div > div:first-child {
    width: 56px !important;
    height: 56px !important;
    font-size: 22px !important;
  }
  #how .container > div::after {
    /* 縦線位置調整 (擬似要素は無いので関係なし) */
  }

  /* フッター */
  .site-footer { padding: 56px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }

  /* 法務ページ */
  .legal-page { padding-top: 32px; padding-bottom: 80px; }
  .legal-body { font-size: 14px; }
  .legal-body .info-table th { width: 120px; font-size: 12px; padding: 12px 10px; }
  .legal-body .info-table td { padding: 12px 10px; font-size: 13.5px; }

  /* ストアボタン全幅 */
  .store-btn { min-width: 0; width: 100%; }
  .hero-grid > div:first-child > div[style*="display: flex"][style*="flex-wrap"] {
    flex-direction: column;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero-grid > div:first-child > h1 {
    font-size: 34px !important;
  }
  .iphone-frame { max-width: 240px; }
  .footer-grid { grid-template-columns: 1fr !important; }
}
