@import url("/assets/site.css");
@import url("/assets/visual.css");
/* iPhone landing: design colors and page rhythm inherited from confirmed Switch design. */
.iphone-hero{background:linear-gradient(120deg,#fffaf1 0%,#eef8f5 100%);border-bottom:1px solid var(--line);}
.iphone-hero-inner{position:relative;display:flex;align-items:center;min-height:302px;padding:28px 0 25px;gap:22px}
.iphone-copy{position:relative;z-index:1;width:62%;min-width:0}
.iphone-copy h1{font-size:clamp(32px,4.5vw,52px);line-height:1.2;margin:0 0 10px;letter-spacing:-.038em}
.iphone-conclusion{font-size:clamp(27px,3.1vw,37px);color:var(--orange);font-weight:900;line-height:1.24;margin:0 0 7px}
.iphone-lead{margin:12px 0 0;font-size:14px;color:var(--body);max-width:65ch}
.iphone-copy .actions{margin-top:16px}
.iphone-mascot{display:block;align-self:flex-end;max-width:33%;width:275px;max-height:265px;height:auto;object-fit:contain;object-position:bottom;mix-blend-mode:normal}
/* Conclusion-first purchase journey: quiet, scannable visuals with exact prices retained. */
.iphone-hero-inner{min-height:264px}
.iphone-copy h1{font-size:clamp(27px,3.6vw,43px)}
.iphone-conclusion{font-size:clamp(27px,3.3vw,39px);font-variant-numeric:tabular-nums}
.iphone-lead{max-width:54ch}
.iphone-quick{padding:20px 0 22px;background:#f7fbf9;border-bottom:1px solid var(--line)}
.iphone-quick .eyebrow{font-size:12px;margin:0 0 4px}
.iphone-quick-verdict{font-size:clamp(17px,2vw,22px);font-weight:750;line-height:1.45;margin:0 0 15px}
.iphone-quick-verdict strong{color:#b34531;font-size:1.3em;white-space:nowrap}
.iphone-bars{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:940px}
.iphone-bar-item{min-width:0}
.iphone-bar-top{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:3px 8px;margin-bottom:7px;font-size:13px;font-weight:750}
.iphone-bar-top strong{font-size:clamp(19px,2.7vw,27px);line-height:1.18;white-space:nowrap}
.iphone-bar-track{height:19px;border-radius:99px;background:#e1e9e6;overflow:hidden}
.iphone-bar-fill{display:block;height:100%;border-radius:99px}
.iphone-bar-low{background:#137a64}
.iphone-bar-high{background:#8fa4ac}
.iphone-bar-item small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.iphone-quick-cta,.iphone-analysis-cta{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:14px}
.iphone-quick-cta a:first-child,.iphone-analysis-cta a:first-child{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 17px;border-radius:10px;background:#137a64;color:white;text-decoration:none;font-weight:800}
.iphone-quick-cta a:not(:first-child),.iphone-analysis-cta a:not(:first-child){font-size:13px;font-weight:750}
.iphone-quick-ads{margin-top:8px;max-width:83ch}
.iphone-analysis{background:#fff}
.iphone-analysis .eyebrow{font-size:12px;margin:0 0 5px}
.iphone-analysis-verdict{margin:0 0 9px;color:#a64431;font-size:clamp(18px,2.3vw,24px);font-weight:850;line-height:1.42}
.iphone-analysis-verdict strong{white-space:nowrap}
.iphone-section-verdict{font-size:15px;margin:0 0 10px;font-weight:650}
@media(max-width:760px){
.iphone-quick{padding:17px 0 18px}
.iphone-bars{gap:12px}
.iphone-bar-top{font-size:12px}
.iphone-quick-cta a:first-child,.iphone-analysis-cta a:first-child{width:100%;max-width:460px}
}
@media(max-width:520px){
.iphone-bars{grid-template-columns:1fr;gap:11px}
.iphone-quick-verdict{margin-bottom:10px}
.iphone-bar-track{height:15px}
.iphone-quick-cta,.iphone-analysis-cta{gap:9px;margin-top:11px}
.iphone-quick-cta a:first-child,.iphone-analysis-cta a:first-child{font-size:14px;min-height:45px}
.iphone-hero-inner{min-height:0}
.iphone-copy h1{max-width:100%;font-size:26px}
.iphone-copy .iphone-conclusion{max-width:84%;font-size:26px}
.iphone-lead{max-width:90%}
}
.iphone-summary{background:#f7fbf9;border-bottom:1px solid var(--line);padding:16px 0 18px}
.iphone-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
.iphone-cards .card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:16px;min-width:0}
.iphone-cards .card:first-child{border:2px solid #7cbea7;background:#f7fcf8}
.iphone-cards .card .label{font-weight:850;font-size:14px;display:block;margin-bottom:7px}
.iphone-cards .card .money{font-weight:900;font-size:clamp(25px,3.4vw,38px);line-height:1.23;color:var(--ink)}
.iphone-cards .card .money small{font-size:13px!important;color:var(--muted);font-weight:500;display:inline-block}
.iphone-cards .card small{font-size:12px!important;color:var(--muted)}
.iphone-disclaimer{margin:9px 0 0}
.iphone-section{padding:32px 0 36px}
.iphone-section h2{font-size:clamp(24px,3vw,30px);margin-bottom:8px}
.iphone-section h3{font-size:19px;margin:19px 0 10px}
/* A single editorial reference photograph, not a photograph of a listed unit. */
.iphone-reference{display:grid;grid-template-columns:174px minmax(0,1fr);gap:18px;align-items:center;margin:17px 0 18px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:15px;min-width:0}
.iphone-reference-photo{position:relative;width:174px;height:212px;overflow:hidden;background:#efece4;border-radius:11px}
.iphone-reference-image{position:absolute;display:block;max-width:none;width:430px;height:auto;left:-209px;top:-120px}
.iphone-reference-copy{min-width:0}
.iphone-reference-copy .eyebrow{font-size:12px;margin:0 0 4px}
.iphone-reference-copy .iphone-reference-head{font-size:19px;line-height:1.4;font-weight:850;margin:0 0 7px}
.iphone-reference-copy p{font-size:13px;line-height:1.65;margin:7px 0}
.iphone-reference-copy .note{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.iphone-reference-copy .note a{text-decoration:underline}
@media(max-width:520px){
.iphone-reference{grid-template-columns:112px minmax(0,1fr);align-items:start;gap:12px;padding:10px}
.iphone-reference-photo{width:112px;height:165px}
.iphone-reference-image{width:276px;left:-132px;top:-73px}
.iphone-reference-copy .iphone-reference-head{font-size:15px}
.iphone-reference-copy p{font-size:12px;line-height:1.55}
.iphone-reference-copy .note{font-size:10px}
}
.iphone-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.iphone-offers .offer{background:#fff;border:1px solid var(--line);border-radius:15px;min-width:0;padding:19px;display:flex;flex-direction:column;gap:8px}
.iphone-offers .offer:nth-child(2){background:#fffaf7;border-color:#efd4ca}
.iphone-offers .offer .money{font-size:clamp(26px,3vw,37px);font-weight:900;line-height:1.23;display:block}
.iphone-offers .offer .money small{font-size:13px;color:var(--muted);font-weight:500}
.iphone-offers .offer h3{font-size:18px;margin:0}
.iphone-offers .offer p{font-size:14px;line-height:1.62;margin:0}
.iphone-offers .offer .tags{display:flex;gap:5px;flex-wrap:wrap}
.iphone-offers .offer .tags span{background:#edf5f2;border:1px solid #d8e6e0;border-radius:5px;padding:3px 7px;font-size:12px}
.iphone-offers .badge{font-size:12px;background:#f0f5f2;border:1px solid #cddfd7;padding:4px 8px;border-radius:6px;color:#356459}
.iphone-offers .badge.ok{background:#e8f7ed;border-color:#a7d0b8;color:#156745}
.iphone-offers .offer p:last-child{margin-top:auto;padding-top:12px}
.iphone-offers .offer p:last-child a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #bdd7ce;border-radius:9px;padding:10px 15px;background:var(--green);color:#fff;font-weight:800;text-decoration:none}
.iphone-shops a,.iphone-sources a{display:inline-block;line-height:1.5;margin:0 8px 8px 0;padding:8px 12px;border:1px solid #c5ded6;border-radius:8px;background:#fff;text-decoration:none;font-size:14px;font-weight:750}
.iphone-calculator{border:1px solid var(--line);border-radius:16px;background:#f5fbf7;max-width:900px;padding:20px}
.iphone-calculator>label{font-weight:850;display:block;margin-bottom:6px}
.iphone-calc-input{display:flex;align-items:center;gap:8px}
.iphone-calc-input input{width:min(100%,220px);min-height:44px;border:1px solid #b3cbc5;border-radius:8px;background:white;color:var(--ink);font:700 20px inherit;font-size:20px;padding:8px 12px;text-align:right}
.iphone-calc-outputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.iphone-calc-outputs>div{background:white;border:1px solid #d7e7df;border-radius:10px;padding:14px}
.iphone-calc-outputs span{font-size:13px;display:block;color:var(--body)}
.iphone-calc-outputs strong{font-size:clamp(24px,3vw,32px);display:block;font-variant-numeric:tabular-nums}
.iphone-verdict{color:var(--green-dark);font-weight:850;margin:9px 0 15px}
.iphone-checklist details,.iphone-faq details{background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 17px;margin:9px 0}
.iphone-checklist details summary,.iphone-faq details summary{cursor:pointer;font-weight:900;line-height:1.5;min-height:44px;padding-block:9px;box-sizing:border-box}
.iphone-checklist details p,.iphone-faq details p{margin:10px 0;font-size:15px}
.iphone-checklist textarea{border-radius:10px;border:1px solid #cddfd7;background:#fff;color:var(--ink);width:100%;min-height:155px;font-size:14px}
.iphone-checklist button{background:#e8f5ef;border:1px solid #a9c8bd;padding:7px 12px;border-radius:6px}
.iphone-evidence p{font-size:14px;color:var(--body)}
@media(max-width:760px){
.iphone-hero-inner{min-height:0;padding:25px 0 8px;display:block}
.iphone-copy{width:100%;padding-bottom:240px}
.iphone-copy h1{max-width:80%;font-size:clamp(28px,6.2vw,40px)}
.iphone-copy .iphone-conclusion{max-width:82%}
.iphone-mascot{position:absolute;right:0;bottom:0;width:170px;max-width:42%;max-height:none}
.iphone-offers{grid-template-columns:1fr}
.iphone-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
.iphone-hero-inner{padding-top:19px}
.iphone-copy{padding-bottom:195px}
.iphone-copy h1{font-size:clamp(26px,7vw,33px)}
.iphone-conclusion{font-size:clamp(25px,6.5vw,30px);max-width:85%}
.iphone-copy .actions{margin-top:12px}
.iphone-copy .btn{min-height:42px;font-size:13px;padding:9px 11px}
.iphone-mascot{width:138px;max-width:42%}
.iphone-lead{font-size:13px}
.iphone-cards .card{padding:11px}
.iphone-cards .card .money{font-size:23px}
.iphone-cards .card .money small{display:block;font-size:12px!important}
.iphone-cards .card .label{font-size:12px}
.iphone-section{padding:24px 0}
.iphone-calc-outputs{grid-template-columns:1fr}
}

/* Prevent an unbreakable emphasized calculation from adding one glyph of overflow at 360px. */
@media(max-width:380px){
.iphone-analysis .section-desc,.iphone-analysis .section-desc strong{overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.iphone-analysis .section-desc{max-width:100%}
}


/* Page identity: restrained aqua, peach and lavender; no pricing meaning inferred from hues. */
.iphone-hero{background:linear-gradient(125deg,#fffaf1 2%,#eef9f5 53%,#edf4ff 100%)}
.iphone-quick{background:linear-gradient(116deg,#f7fbf9 55%,#f4f4ff 100%)}
.iphone-analysis{background:linear-gradient(180deg,#fff,#f9fcff)}
.iphone-analysis-intro{display:grid;grid-template-columns:minmax(0,1fr) 130px;align-items:center;gap:10px;margin-bottom:12px}
.iphone-analysis-intro>div{min-width:0}
.iphone-analysis-intro .section-desc{margin-bottom:4px}
.iphone-submascot{display:block;width:120px;max-width:100%;height:110px;object-fit:contain;justify-self:center}
.iphone-check-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.iphone-check-header p{min-width:0;flex:1;margin:0 0 12px}
.iphone-checkmascot{object-fit:contain;object-position:center;display:block;width:135px;max-width:35%;height:95px;flex:0 0 135px}
.iphone-grade-guide{margin:17px 0 22px}
.iphone-grade-heading{margin:0 0 11px}
.iphone-grade-heading h3{font-size:clamp(19px,2.5vw,23px);margin:0 0 4px}
.iphone-grade-heading .note{max-width:86ch}
.iphone-grade-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.iphone-grade-card{--accent:#1b7d75;min-width:0;overflow:hidden;background:white;border:1px solid #d9e6e4;border-top:4px solid var(--accent);border-radius:13px;padding:10px;display:flex;flex-direction:column;gap:6px}
.iphone-grade-card.grade-c{--accent:#c7745d;background:#fffaf7}
.iphone-grade-card.grade-b{--accent:#8f6a2c;background:#fffdf8}
.iphone-grade-card.grade-a{--accent:#6e86bc;background:#fafbff}
.iphone-grade-card>img{display:block;width:100%;height:auto;aspect-ratio:11/7;object-fit:cover;border-radius:9px;background:#f7f9f9}
.iphone-grade-caption{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 8px}
.iphone-grade-tag{font-weight:850;font-size:13px;color:var(--accent)}
.iphone-grade-caption strong{font-weight:900;font-size:clamp(16px,2vw,23px);line-height:1.2;font-variant-numeric:tabular-nums}
.iphone-grade-card p{font-size:12px;line-height:1.55;margin:0;flex:1;overflow-wrap:anywhere}
.iphone-grade-price{font-size:11px;color:var(--muted);line-height:1.4}
.iphone-grade-card>a{display:block;font-weight:750;font-size:12px;line-height:1.4;text-underline-offset:2px;overflow-wrap:anywhere;margin-top:5px}
.iphone-grade-bottom{margin:9px 0 0}
.iphone-grade-bottom p{font-size:11px;line-height:1.5;margin:4px 0;color:#64777a}
.iphone-grade-bottom .iphone-grade-real{margin-top:8px}
.iphone-grade-real a{font-size:12px;margin-right:12px;font-weight:700}
@media(max-width:760px){
 .iphone-grade-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .iphone-grade-card.grade-a{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);grid-template-rows:auto auto auto 1fr;align-items:start;column-gap:12px}
 .iphone-grade-card.grade-a>img{grid-column:1;grid-row:1/span 4;align-self:stretch;max-height:158px}
 .iphone-grade-card.grade-a .iphone-grade-caption,.iphone-grade-card.grade-a p,.iphone-grade-card.grade-a small,.iphone-grade-card.grade-a a{grid-column:2}
 .iphone-analysis-intro{grid-template-columns:minmax(0,1fr) 93px}
 .iphone-submascot{width:90px;height:90px}
}
@media(max-width:520px){
 .iphone-grade-card{padding:8px;gap:5px}
 .iphone-grade-caption{display:block}
 .iphone-grade-caption strong{display:block;font-size:19px;margin:3px 0 0}
 .iphone-grade-tag{font-size:12px}
 .iphone-grade-card p{font-size:11px}
 .iphone-grade-card>a{font-size:11px}
 .iphone-grade-card.grade-a .iphone-grade-caption strong{font-size:15px}
 .iphone-analysis-intro{grid-template-columns:minmax(0,1fr) 74px;gap:4px}
 .iphone-submascot{width:74px;height:85px}
 .iphone-checkmascot{width:95px;height:85px;max-width:30%;flex:0 0 95px}
 .iphone-check-header .iphone-section-verdict{font-size:13px}
}


/* Only consented merchant assets may use this slot; image is never cropped. */
.iphone-offers .merchant-photo{margin:4px 0 8px;padding:10px;background:#f7fafb;border:1px solid #dce8e9;border-radius:11px}
.iphone-offers .merchant-photo img{width:100%;max-height:230px;object-fit:contain;object-position:center;display:block;background:white;border-radius:7px}
.iphone-offers .merchant-photo figcaption{font-size:11px;color:var(--muted);line-height:1.5;margin-top:5px}


/* Repair choice is the user-value module, not a generic subtraction calculator. */
.iphone-repair-verdict{text-wrap:balance;word-break:auto-phrase;font-size:clamp(19px,2.6vw,26px);line-height:1.43;color:#a54632;font-weight:900;margin:0 0 10px;max-width:50ch}
.iphone-repair-switch{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin:12px 0}
.iphone-repair-switch button{border-radius:99px;padding:10px 17px;background:#fff;border:1px solid #adcfc6;color:#126956;font-weight:850;font-size:14px}
.iphone-repair-switch button.is-selected,.iphone-repair-switch button[aria-pressed="true"]{background:#117b66;color:white;border-color:#117b66}
.iphone-repair-switch button:disabled{opacity:.55}
.iphone-repair-compare{background:linear-gradient(133deg,#f4faf8,#f8f8ff);border:1px solid #d4e5e0;border-radius:17px;padding:20px;min-width:0}
.iphone-repair-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.iphone-repair-item{min-width:0;border:1px solid #d5e3df;border-radius:13px;background:#fff;padding:15px;display:grid;align-content:start;gap:2px}
.iphone-repair-item.is-cheapest{border:2px solid #4ea38e;background:#f7fffb}
.iphone-repair-item>span{font-size:13px;font-weight:850}
.iphone-repair-item>strong{font-size:clamp(22px,2.6vw,30px);line-height:1.22;letter-spacing:-.02em}
.iphone-repair-item>small{font-size:11px;color:#617783}
.iphone-repair-track{height:9px;background:#e2e9ed;border-radius:99px;overflow:hidden;margin:9px 0 3px}
.iphone-repair-track>span{display:block;height:100%;width:50%;background:#829aa9;border-radius:99px}
.iphone-repair-item.is-cheapest .iphone-repair-track>span{background:#17866b}
.iphone-repair-result{font-size:14px;font-weight:750;line-height:1.6;color:#126d5f;margin:15px 0 8px}
.iphone-repair-cta{display:flex;gap:10px 17px;align-items:center;flex-wrap:wrap;margin:15px 0}
.iphone-repair-cta a:first-child{display:inline-flex;align-items:center;border-radius:10px;min-height:44px;background:#137a64;color:white;padding:10px 18px;font-weight:850;text-decoration:none}
.iphone-repair-cta a:not(:first-child){font-size:13px;font-weight:750}
.iphone-repair-details{border-top:1px solid #d4e4e0;padding-top:11px;margin:12px 0}
.iphone-repair-details summary{min-height:44px;padding-block:9px;box-sizing:border-box;font-size:14px;font-weight:800;color:#12746a;cursor:pointer}
.iphone-repair-sources{padding:12px 0}
.iphone-repair-sources p{font-size:13px;line-height:1.6;margin-bottom:10px}
.iphone-repair-sources p a{margin-left:7px;white-space:nowrap}
@media(max-width:520px){
 .iphone-repair-compare{padding:12px}
 .iphone-repair-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .iphone-repair-item{padding:10px 8px}
 .iphone-repair-item>span{font-size:11px;line-height:1.43}
 .iphone-repair-item>strong{font-size:clamp(20px,6.6vw,25px);overflow-wrap:anywhere}
 .iphone-repair-switch{gap:6px}
 .iphone-repair-switch button{padding:9px 12px;font-size:12px}
 .iphone-repair-result{font-size:13px}
 .iphone-repair-cta a:first-child{width:100%;justify-content:center}
}


/* v2 evidence check: compact metadata, no changes to site's approved grid or color system. */
.iphone-repair-item.is-baseline{background:#fbfcfd;border-color:#dde6e9}
.iphone-repair-item.is-baseline>span{color:#62747f}
.iphone-repair-checks{margin:12px 0 8px;padding:11px 14px;border-left:3px solid #19917c;background:#fff;border-radius:0 10px 10px 0}
.iphone-repair-checks p{font-size:13px;line-height:1.55;margin:0 0 5px}
.iphone-repair-checks a{font-weight:750;font-size:12px;text-decoration:underline;text-underline-offset:2px}
.iphone-repair-freshness:not([hidden]){display:block;margin:8px 0 12px;border:1px solid #e8cba2;border-radius:8px;background:#fff9ee;padding:9px 12px;color:#8a4e10}
@media(max-width:520px){.iphone-repair-checks{padding:10px 11px}.iphone-repair-checks p{font-size:12px}}


/* 2026-11-01: iPhone-only width + genuinely varied mascot compositions.
   Switch, shared .wrap, and shared site.css deliberately remain unchanged. */
.iphone-hero > .wrap,
.iphone-quick > .wrap,
.iphone-section > .wrap{
  width:min(calc(100% - 64px),1520px);
  max-width:1520px;
  margin-inline:auto;
}
.iphone-hero-inner{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(300px,.8fr);
  align-items:center;
  gap:clamp(18px,3vw,48px);
  padding:24px 0 0;
  min-height:425px;
}
.iphone-copy{width:100%;padding-bottom:22px;min-width:0}
.iphone-copy h1{font-size:clamp(31px,3.3vw,47px)}
.iphone-copy .iphone-conclusion{max-width:100%;font-size:clamp(25px,3vw,37px)}
.iphone-lead{max-width:62ch}
.iphone-mascot{
  position:static;
  display:block;
  width:clamp(320px,34vw,505px);
  max-width:100%;
  max-height:540px;
  height:auto;
  object-fit:contain;
  align-self:end;
  justify-self:end;
  margin:0;
  pointer-events:none;
}
.iphone-analysis-intro{
  grid-template-columns:minmax(0,1fr) clamp(190px,21vw,260px);
  align-items:center;
  gap:14px;
}
.iphone-submascot{
  display:block;
  width:clamp(190px,20vw,260px);
  max-width:100%;
  height:auto;
  max-height:290px;
  object-fit:contain;
  align-self:end;
}
.iphone-check-header{min-height:165px}
.iphone-checkmascot{
  display:block;
  flex:0 0 clamp(175px,20vw,260px);
  width:clamp(175px,20vw,260px);
  max-width:35%;
  height:auto;
  max-height:265px;
  object-fit:contain;
}
@media(max-width:900px){
  .iphone-hero-inner{
    grid-template-columns:minmax(0,1fr) minmax(240px,.55fr);
    gap:12px;
    min-height:0;
  }
  .iphone-mascot{width:clamp(240px,32vw,350px)}
  .iphone-copy{padding-bottom:12px}
  .iphone-analysis-intro{grid-template-columns:minmax(0,1fr) 175px}
  .iphone-submascot{width:175px;height:auto}
}
@media(max-width:760px){
  .iphone-hero > .wrap,
  .iphone-quick > .wrap,
  .iphone-section > .wrap{
    width:calc(100% - 32px);
  }
  .iphone-hero-inner{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:18px 0 0;
    gap:0;
  }
  .iphone-copy{width:100%;padding-bottom:0}
  .iphone-copy h1,.iphone-copy .iphone-conclusion{max-width:100%}
  .iphone-lead{max-width:100%}
  .iphone-mascot{
    position:static;
    align-self:center;
    width:min(60vw,310px);
    max-width:100%;
    max-height:415px;
    height:auto;
    margin:8px 0 0;
    pointer-events:none;
  }
}
@media(max-width:520px){
  .iphone-hero > .wrap,
  .iphone-quick > .wrap,
  .iphone-section > .wrap{
    width:calc(100% - 24px);
  }
  .iphone-hero-inner{padding-top:15px}
  .iphone-copy{padding:0}
  .iphone-copy .iphone-conclusion{max-width:100%;font-size:clamp(24px,6vw,29px)}
  .iphone-mascot{width:min(61vw,260px);max-height:355px;margin-top:7px}
  .iphone-analysis-intro{grid-template-columns:minmax(0,1fr) minmax(118px,37%);gap:6px}
  .iphone-submascot{width:100%;height:auto;max-height:205px}
  .iphone-check-header{min-height:0;gap:8px}
  .iphone-checkmascot{
    flex:0 0 min(40%,155px);
    width:min(40%,155px);
    max-width:40%;
    height:auto;
    max-height:205px;
  }
}
@media(max-width:360px){
  .iphone-hero-inner{padding-top:12px}
  .iphone-mascot{width:min(60vw,210px);max-height:280px}
  .iphone-analysis-intro{grid-template-columns:minmax(0,1fr) minmax(110px,34%)}
  .iphone-checkmascot{flex-basis:35%;width:35%;max-width:35%}
}

/* Align the iPhone page's shared chrome with its wider editorial canvas. */
.header > .wrap,
.footer > .wrap,
.header + .note.wrap{
  width:min(calc(100% - 64px),1520px);
  max-width:1520px;
}
.iphone-bars{max-width:none}
@media(max-width:760px){
  .header > .wrap,.footer > .wrap,.header + .note.wrap{width:calc(100% - 32px)}
}
@media(max-width:520px){
  .header > .wrap,.footer > .wrap,.header + .note.wrap{width:calc(100% - 24px)}
}


/* 2026-11-01: overlay all three AI Navi poses; images never allocate content rows.
   The text/CTA controls block height. Only this iPhone stylesheet is affected. */
.iphone-hero-inner,
.iphone-analysis > .wrap,
#checklist > .wrap{position:relative}
.iphone-mascot,.iphone-submascot,.iphone-checkmascot{
  position:absolute;
  display:block;
  float:none;
  align-self:auto;
  justify-self:auto;
  flex:none;
  object-fit:contain;
  object-position:center;
  pointer-events:none;
  margin:0;
  z-index:1;
}
/* Hero: preserve the headline and direct shop actions, not an image-sized gutter. */
.iphone-hero-inner{
  display:block;
  min-height:0;
  padding:25px 0 22px;
}
.iphone-copy{
  position:relative;
  width:100%;
  min-width:0;
  padding:0 clamp(285px,31vw,455px) 0 0;
  z-index:2;
}
.iphone-mascot{
  top:50%;
  right:0;
  transform:translateY(-50%);
  width:clamp(295px,32vw,450px);
  max-width:38%;
  max-height:390px;
  height:auto;
}
/* Repair: the pose is a sticker next to the section heading.
   The switch row is its own natural height, never expanded by the pose. */
.iphone-analysis > .wrap > h2,
.iphone-analysis > .wrap > .iphone-repair-verdict,
.iphone-analysis > .wrap > .section-desc{
  max-width:calc(100% - 235px);
}
.iphone-analysis-intro{
  display:block;
  position:static;
  min-height:0;
  margin:8px 0 10px;
  padding:0;
}
.iphone-analysis-intro .iphone-repair-switch{
  width:max-content;
  max-width:calc(100% - 235px);
  margin:5px 0 8px;
}
.iphone-submascot{
  top:4px;
  right:2px;
  width:220px;
  max-width:220px;
  height:auto;
  max-height:260px;
}
.iphone-repair-compare{
  position:relative;
  z-index:2;
}
/* Checklist: absolutely pinned art, with no min-height or flex row. */
#checklist .iphone-check-header{
  display:block;
  position:static;
  min-height:0;
  height:auto;
  margin:0 0 10px;
  padding:0;
  gap:0;
}
#checklist h2{margin:0 0 8px;max-width:calc(100% - 220px)}
#checklist .iphone-check-header p{
  min-width:0;
  max-width:100%;
  padding-right:220px;
  margin:0;
  line-height:1.45;
}
#checklist .iphone-checkmascot{
  top:0;
  right:0;
  width:205px;
  max-width:205px;
  height:auto;
  max-height:245px;
}
#checklist .iphone-checklist{
  position:relative;
  z-index:2;
}
/* Tablets: retain readable controls while tightening the overlay. */
@media(max-width:900px){
  .iphone-copy{padding-right:clamp(220px,30vw,300px)}
  .iphone-mascot{width:clamp(235px,31vw,320px);max-width:38%;max-height:330px}
  .iphone-analysis > .wrap > h2,
  .iphone-analysis > .wrap > .iphone-repair-verdict,
  .iphone-analysis > .wrap > .section-desc{max-width:calc(100% - 175px)}
  .iphone-analysis-intro .iphone-repair-switch{max-width:calc(100% - 175px)}
  .iphone-submascot{width:170px;max-width:170px;max-height:210px}
  #checklist h2{max-width:calc(100% - 175px)}
  #checklist .iphone-check-header p{padding-right:175px}
  #checklist .iphone-checkmascot{width:165px;max-width:165px;max-height:205px}
}
/* Phones: no giant bottom padding; sticker on the right of short upper copy. */
@media(max-width:760px){
  .iphone-hero-inner{display:block;min-height:0;padding:18px 0 14px}
  .iphone-copy{width:100%;padding:0}
  .iphone-copy h1,.iphone-copy .iphone-conclusion,
  .iphone-copy > .note{max-width:calc(100% - 195px)}
  .iphone-mascot{
    top:8px;
    right:0;
    bottom:auto;
    transform:none;
    width:205px;
    max-width:205px;
    max-height:275px;
  }
  .iphone-copy .iphone-lead{max-width:100%}
  .iphone-analysis > .wrap > h2,
  .iphone-analysis > .wrap > .iphone-repair-verdict,
  .iphone-analysis > .wrap > .section-desc{max-width:calc(100% - 135px)}
  .iphone-analysis-intro .iphone-repair-switch{max-width:calc(100% - 135px)}
  .iphone-submascot{top:8px;right:0;width:130px;max-width:130px;max-height:175px}
  #checklist h2{max-width:calc(100% - 132px)}
  #checklist .iphone-check-header p{padding-right:132px}
  #checklist .iphone-checkmascot{top:0;width:130px;max-width:130px;max-height:160px}
}
@media(max-width:520px){
  .iphone-hero-inner{padding-top:16px;padding-bottom:12px}
  .iphone-copy h1,.iphone-copy .iphone-conclusion,
  .iphone-copy > .note{max-width:calc(100% - 155px)}
  .iphone-mascot{top:15px;width:165px;max-width:165px;max-height:230px}
  .iphone-copy .actions{position:relative;z-index:3}
  .iphone-analysis > .wrap > h2,
  .iphone-analysis > .wrap > .iphone-repair-verdict,
  .iphone-analysis > .wrap > .section-desc{max-width:calc(100% - 110px)}
  .iphone-analysis-intro .iphone-repair-switch{max-width:calc(100% - 110px)}
  .iphone-submascot{top:7px;width:110px;max-width:110px;max-height:145px}
  #checklist h2{max-width:calc(100% - 112px);margin-bottom:6px}
  #checklist .iphone-check-header{margin-bottom:8px}
  #checklist .iphone-check-header p{padding-right:112px;margin-bottom:0}
  #checklist .iphone-checkmascot{top:2px;width:110px;max-width:110px;max-height:145px}
}
@media(max-width:360px){
  .iphone-copy h1,.iphone-copy .iphone-conclusion,
  .iphone-copy > .note{max-width:calc(100% - 137px)}
  .iphone-mascot{width:150px;max-width:150px;max-height:205px}
  .iphone-analysis > .wrap > h2,
  .iphone-analysis > .wrap > .iphone-repair-verdict,
  .iphone-analysis > .wrap > .section-desc{max-width:calc(100% - 98px)}
  .iphone-analysis-intro .iphone-repair-switch{max-width:calc(100% - 98px)}
  .iphone-submascot{width:96px;max-width:96px;max-height:130px}
  #checklist h2{max-width:calc(100% - 98px)}
  #checklist .iphone-check-header p{padding-right:98px}
  #checklist .iphone-checkmascot{width:98px;max-width:98px;max-height:128px}
}


/* Keep the complete transparent figure above card backgrounds (never block clicks). */
.iphone-analysis .iphone-submascot,
#checklist .iphone-checkmascot{z-index:4;pointer-events:none}


/* iPhone: ONE authentic upper-body AI Navi, peeking over the right page edge.
   The mascot is decorative, never creates whitespace, and never intercepts links.
   This overrides older multi-mascot layout declarations without touching Switch. */
.iphone-hero{
  position:relative;
  overflow:hidden;
}
.iphone-hero-inner{
  position:relative;
  display:block;
  min-height:0;
  padding:25px 0 25px;
}
.iphone-copy{
  position:relative;
  z-index:2;
  width:100%;
  min-width:0;
  padding:0 clamp(260px,29vw,390px) 0 0;
}
.iphone-copy h1,
.iphone-copy .iphone-conclusion,
.iphone-lead{max-width:100%}
.iphone-mascot{
  position:absolute;
  z-index:1;
  top:-24px;
  right:calc(50% - 50vw - 7px);
  bottom:auto;
  left:auto;
  display:block;
  float:none;
  width:clamp(310px,30vw,405px);
  max-width:none;
  max-height:none;
  height:auto;
  margin:0;
  transform:none;
  object-fit:contain;
  object-position:top right;
  pointer-events:none;
}
/* Restore full-width text/controls in image-free repair and checklist sections. */
.iphone-analysis > .wrap > h2,
.iphone-analysis > .wrap > .iphone-repair-verdict,
.iphone-analysis > .wrap > .section-desc{max-width:100%}
.iphone-analysis-intro{display:block;position:static;min-height:0;margin:8px 0 10px;padding:0}
.iphone-analysis-intro .iphone-repair-switch{max-width:100%;width:auto}
#checklist h2{max-width:100%;margin-bottom:8px}
#checklist .iphone-check-header{position:static;display:block;min-height:0;margin:0 0 10px;padding:0}
#checklist .iphone-check-header p{max-width:100%;padding:0;margin:0;line-height:1.45}
@media(max-width:900px){
  .iphone-copy{padding-right:clamp(210px,29vw,275px)}
  .iphone-mascot{width:clamp(260px,32vw,330px)}
}
@media(max-width:760px){
  .iphone-hero-inner{display:block;min-height:0;padding:18px 0 16px}
  .iphone-copy{padding:0}
  .iphone-copy h1{max-width:100%}
  .iphone-copy .iphone-conclusion,
  .iphone-copy > .note,
  .iphone-copy .iphone-lead{max-width:calc(100% - 140px)}
  .iphone-mascot{top:76px;right:calc(50% - 50vw - 12px);width:220px;max-width:none;max-height:none;height:auto;transform:none}
}
@media(max-width:520px){
  .iphone-hero-inner{padding:9px 0 5px}
  .iphone-copy h1{max-width:100%}
  .iphone-copy .iphone-conclusion,
  .iphone-copy > .note,
  .iphone-copy .iphone-lead{max-width:calc(100% - 138px)}
  .iphone-mascot{top:76px;width:215px;right:calc(50% - 50vw - 13px)}
  .iphone-copy .actions{position:relative;z-index:3}
}
@media(max-width:360px){
  .iphone-copy .iphone-conclusion,
  .iphone-copy > .note,
  .iphone-copy .iphone-lead{max-width:calc(100% - 122px)}
  .iphone-mascot{top:83px;width:190px;right:calc(50% - 50vw - 14px)}
}


/* Phone-only refinement after screenshot review: keep the peeking art clear of CTAs. */
@media(max-width:760px){
  .iphone-mascot{top:84px;width:160px;right:calc(50% - 50vw - 12px)}
  .iphone-copy .iphone-conclusion,
  .iphone-copy > .note,
  .iphone-copy .iphone-lead{max-width:calc(100% - 128px)}
  .iphone-copy .actions{position:relative;z-index:3}
}
@media(max-width:520px){
  .iphone-mascot{top:92px;width:152px;right:calc(50% - 50vw - 13px)}
  .iphone-copy .iphone-conclusion,
  .iphone-copy > .note,
  .iphone-copy .iphone-lead{max-width:calc(100% - 120px)}
}
@media(max-width:360px){
  .iphone-mascot{top:100px;width:140px;right:calc(50% - 50vw - 14px)}
  .iphone-copy .iphone-conclusion,
  .iphone-copy > .note,
  .iphone-copy .iphone-lead{max-width:calc(100% - 110px)}
}


/* Final size tuning: enlarge the portrait while keeping its left edge off the copy. */
@media(max-width:760px){
  .iphone-mascot{top:84px;width:195px;right:calc(50% - 50vw - 27px)}
}
@media(max-width:520px){
  .iphone-mascot{top:93px;width:175px;right:calc(50% - 50vw - 31px)}
}
@media(max-width:360px){
  .iphone-mascot{top:100px;width:158px;right:calc(50% - 50vw - 31px)}
}


/* At 390px the text wraps differently; raise the sticker above the primary CTA. */
@media(min-width:381px) and (max-width:410px){
  .iphone-mascot{top:68px}
}


/* 2体目のAIナビ（FAQ見出し脇）。素材は縦長の全身（550×687）。
   カードの上端と重ならないよう、見出し直下に画像の高さ分だけ余白を確保する。 */
#faq > .wrap{position:relative}
#faq h2{padding-right:138px}
#faq .iphone-faq-navi{
  position:absolute;
  top:-34px;
  right:12px;
  display:block;
  width:100px;
  max-width:none;
  height:auto;
  max-height:none;
  object-fit:contain;
  object-position:center;
  pointer-events:none;
  z-index:2;
}
#faq .iphone-faq{margin-top:46px}
@media(max-width:760px){
  #faq h2{padding-right:110px}
  #faq .iphone-faq-navi{top:-13px;right:7px;width:92px}
  #faq .iphone-faq{margin-top:70px}
}
@media(max-width:360px){
  #faq h2{padding-right:96px}
  #faq .iphone-faq-navi{top:-9px;right:3px;width:80px}
  #faq .iphone-faq{margin-top:58px}
}

/* ===== v2.1 readability layer (Drive 01_SITE_ENGINE_RULES_CURRENT §2-2) =====
   Last in the cascade on purpose: min 12px text, exact amounts readable,
   no 1-2 character last lines, money amounts never split. */
.nw{white-space:nowrap}
.iphone-copy h1,.iphone-conclusion,.iphone-quick-verdict,.iphone-analysis-verdict,.iphone-section-verdict,
.iphone-section h2,.iphone-section h3,.iphone-reference-head{word-break:auto-phrase;text-wrap:balance}
.iphone-lead{font-size:16px;line-height:1.7}
.iphone-bar-item small,.iphone-repair-item>small{font-size:13px;color:var(--body)}
.iphone-grade-price,.iphone-grade-bottom p,.iphone-offers .merchant-photo figcaption,
.iphone-reference-copy .note,.iphone-repair-checks p{font-size:12px}
@media(max-width:520px){
  .iphone-lead{font-size:16px}
  .iphone-repair-item>span{font-size:12px}
  .iphone-grade-card p,.iphone-grade-card>a,.iphone-reference-copy .note,.iphone-repair-checks p{font-size:12px}
}
/* Anchor the peeking AI Navi to the bottom of the hero text instead of a font-dependent
   pixel "top". The CTA block height is fixed (single-line buttons), so the mascot always
   ends just above the buttons whatever font the device uses. */
@media(max-width:520px){
  .iphone-mascot{top:auto;bottom:114px}
}
@media(min-width:521px) and (max-width:760px){
  .iphone-mascot{top:auto;bottom:70px}
}

/* Affiliate repair-shop link (A8). PR label must be clearly visible (advertiser's rejection condition). */
.iphone-repair-partner{margin:12px 0 0;font-size:15px;line-height:1.6;word-break:auto-phrase}
.iphone-repair-partner small{display:block;font-size:12px;color:var(--muted)}
.pr-badge{display:inline-block;margin-right:6px;padding:1px 6px;border:1px solid currentColor;border-radius:4px;font-size:12px;font-weight:800;color:#8a5a00;background:#fff6e0;vertical-align:1px}

/* Above-the-fold PR notice: clear text, not a promotional banner. */
body > p.note.wrap:not(:empty){font-size:13px!important;font-weight:500!important;color:#4b5d65!important;line-height:1.5!important;background:transparent;border:0;border-radius:0;padding:0;margin-top:6px;margin-bottom:0}

/* v2.5: 補足は小さく短く。出典は折りたたみ */
.iphone-evidence p{font-size:14px;line-height:1.6;color:#4f6469;margin:0 0 6px}
.iphone-source-list{margin-top:10px}
.iphone-source-list summary{cursor:pointer;min-height:44px;padding-block:9px;box-sizing:border-box;font-weight:750;font-size:15px;color:#185b55}
.iphone-source-list .iphone-sources{margin-top:10px}

/* v2.8: 関係する項目の中にリンク、表は列をそろえる */
.iphone-repair-link{display:inline-block;margin-top:6px;font-size:12px;font-weight:750;text-decoration:underline;text-underline-offset:2px;color:#185b55;line-height:1.4}
.iphone-repair-table{width:100%;border-collapse:collapse;margin:6px 0 10px;font-size:14px}
.iphone-repair-table th,.iphone-repair-table td{padding:7px 8px;border-bottom:1px solid #dfe9e5;text-align:left;vertical-align:top}
.iphone-repair-table thead th{font-size:12px;color:#5f7176;font-weight:700}
.iphone-repair-table tbody th{font-weight:750;white-space:nowrap;width:7.5em}
.iphone-repair-table td:nth-child(2){font-weight:800;white-space:nowrap;text-align:right;width:6.5em;font-variant-numeric:tabular-nums}
.iphone-repair-table td:nth-child(3){font-size:13px;color:#4f6469}
/* 横に並ぶ修理カードは、見出し・金額・バーの行を subgrid で共有して高さをそろえる（rules §2-8） */
@supports (grid-template-rows:subgrid){
 .iphone-repair-item{grid-row:span 5;grid-template-rows:subgrid;row-gap:2px}
}

/* v3.0: 予算別の答え・価格表・総額表（rules §2-1） */
.budget-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.budget-card{display:flex;flex-direction:column;gap:4px;border:1px solid #d5e3df;border-radius:14px;background:#fff;padding:16px}
.budget-tier{font-size:13px;font-weight:850;color:#185b55}
.budget-total{font-size:clamp(26px,3vw,32px);font-weight:900;line-height:1.2}
.budget-what{font-size:17px;font-weight:800;margin:0}
.budget-why{font-size:14px;color:#4f6469;margin:0;flex:1 0 auto}
.budget-card>small{font-size:12px;color:#5f7176}
.budget-card .btn{margin-top:8px;align-self:stretch;text-align:center}
.market-table{width:100%;border-collapse:collapse;margin:12px 0 8px;font-size:15px;background:#fff;border-radius:12px;overflow:hidden}
.market-table th,.market-table td{padding:10px 10px;border-bottom:1px solid #e1ebe7;text-align:left;vertical-align:middle}
.market-table thead th{font-size:12px;color:#5f7176;font-weight:700;background:#f6faf8}
.market-table tbody th{font-weight:850;white-space:nowrap}
.market-table th small,.market-table td small{display:block;font-size:13px;font-weight:500;color:#41585e;line-height:1.45}
.market-table .num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.market-table .num strong,.market-table .num span{font-size:18px;font-weight:900}
.market-table .links a{display:inline-block;margin:2px 10px 2px 0;font-size:13px;font-weight:750;white-space:nowrap}
.matrix-table td.is-cheapest{background:#e3f6ee;box-shadow:inset 0 0 0 2px #4ea38e}
.market-root.is-expired .budget-card .btn{display:none}
@media(max-width:640px){
 .budget-grid{grid-template-columns:1fr}
 .market-table:not(.matrix-table) thead{display:none}
 .market-table:not(.matrix-table) tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;padding:10px 0;border-bottom:1px solid #e1ebe7}
 .market-table:not(.matrix-table) th,.market-table:not(.matrix-table) td{border:0;padding:0 10px}
 .market-table:not(.matrix-table) tbody th{grid-column:1}
 .market-table:not(.matrix-table) td.num{grid-column:2;grid-row:1/span 2;align-self:center}
 .market-table:not(.matrix-table) td{grid-column:1}
 .market-table:not(.matrix-table) td.links{grid-column:1/-1}
 .repair-price-table td.num{grid-row:auto}
 .matrix-table{font-size:13px}
 .matrix-table th,.matrix-table td{padding:8px 6px}
 .matrix-table .num span{font-size:15px}
}
@media(max-width:640px){
 .market-table.repair-price-table tr{grid-template-columns:minmax(0,1fr) auto auto}
 .market-table.repair-price-table td.num{grid-column:auto;grid-row:1;text-align:right;padding:0 6px}
 .repair-price-table td.num::before{content:attr(data-label);display:block;font-size:12px;font-weight:700;color:#5f7176}
 .market-table.repair-price-table td.links{grid-column:1/-1}
 .market-table.repair-price-table tbody th{grid-row:1;grid-column:1;align-self:end}
}
.repair-price-table td.num{font-size:17px;font-weight:850}
.iphone-section .section-desc{word-break:normal;overflow-wrap:anywhere;max-width:100%}
.budget-card .btn{margin-top:auto}.budget-card>small{margin-bottom:8px}
.budget-card .btn{white-space:nowrap;font-size:15px;padding-left:8px;padding-right:8px}

/* 2026-11-02 金額の見やすさ（rules §2-2）：表は細かい金額だけ。カードは約◯万円を大きく、細かい金額を小さく */
.market-table thead th.num{text-align:right}
.matrix-table{table-layout:fixed}
.matrix-table th:first-child{width:22%}
.market-table .num strong{font-size:17px;font-weight:850}
.budget-card .budget-total{font-size:32px;line-height:1.15}
.budget-card .budget-exact{display:block;font-size:14px;font-weight:600;color:#5f7176;margin-top:2px}
@media(max-width:560px){.matrix-table .num strong{font-size:14px}.budget-card .budget-total{font-size:28px}}
.iphone-repair-table thead th.num{text-align:right}
/* 総額表の列見出し：修理代が正規か非正規か（2026-11-02） */
.matrix-table thead th{vertical-align:bottom}
.matrix-table th .matrix-src{display:block;font-size:12px;font-weight:600;color:#4f625c;line-height:1.3;white-space:nowrap}
.matrix-tip{margin:12px 0 4px;font-size:15px;line-height:1.7}


/* === 2026-11-03 DESIGN RESTART · SOURCE: main, NOT the unmerged design PR ===
   Visual-only changes. Prices, copy, ranking, outbound URLs and click tracking
   remain owned by the templates/build. Do not change CTA display semantics.
   The 30-day stale gate at the bottom is intentional and must win.          */

/* Neutral, legible editorial rhythm: each decision is visually separate. */
.iphone-section{padding-block:clamp(25px,3.2vw,42px)}
.iphone-section h2{
  font-size:clamp(22px,2.4vw,29px);
  line-height:1.34;
  letter-spacing:-.025em;
  margin:0 0 9px;
  text-wrap:balance;
  word-break:auto-phrase;
}
.iphone-section .section-desc{
  font-size:15px;
  line-height:1.65;
  color:#4f626a;
  margin-top:0;
}
.iphone-section.soft{background:#f7faf8}
.iphone-hero{background:linear-gradient(120deg,#fffbf4 0%,#f1faf6 57%,#eff6ff 100%)}
.iphone-copy h1{
  font-size:clamp(27px,3.0vw,39px);
  line-height:1.35;
  letter-spacing:-.025em;
  text-wrap:balance;
  word-break:auto-phrase;
}
.iphone-copy .iphone-conclusion{
  color:#ab4334;
  font-size:clamp(25px,3.0vw,35px);
  line-height:1.38;
  letter-spacing:-.018em;
  text-wrap:balance;
  word-break:auto-phrase;
}
.iphone-copy .iphone-lead{font-size:15px;line-height:1.45}
.iphone-copy .actions .btn{min-height:44px}

/* The 3 purchase choices are the primary navigation to real merchants. */
.budget-grid{
  gap:clamp(8px,1.1vw,15px);
  align-items:stretch;
  margin-top:8px;
}
.budget-card{
  position:relative;
  min-width:0;
  border:1px solid #d4e0dc;
  border-top:4px solid #9db7ad;
  border-radius:15px;
  background:#fff;
  box-shadow:0 4px 16px rgba(25,63,53,.055);
  padding:clamp(12px,1.3vw,18px);
  gap:5px;
}
.budget-card:nth-child(2){
  background:var(--ui-apricot-bg);
  border:2px solid #c2611a;
  border-top:4px solid #c2611a;
  box-shadow:0 5px 18px rgba(194,97,26,.14);
}
.budget-card .budget-tier{
  font-size:13px;
  line-height:1.45;
  letter-spacing:.035em;
  color:#2e6255;
  font-weight:800;
}
.budget-card .budget-total{
  font-size:clamp(29px,3.0vw,36px);
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.025em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.budget-card .budget-exact{
  font-size:14px;
  line-height:1.45;
  font-weight:500;
  color:#586c71;
}
.budget-card .budget-what{font-size:17px;line-height:1.5}
.budget-card .budget-why{font-size:15px;line-height:1.55;color:#465d64}
.budget-card>small{font-size:13px;line-height:1.5;color:#566b70}
.budget-card>.btn{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:48px;
  padding:10px 14px;
  margin-top:auto;
  border-radius:10px;
  font-size:15px;
  font-weight:800;
  text-align:center;
  line-height:1.45;
  text-decoration:none;
  white-space:normal;
  overflow-wrap:normal;
  box-shadow:0 2px 0 rgba(10,48,39,.10);
}
.budget-card>.btn:hover{filter:brightness(.96)}
.budget-card>.btn:focus-visible{outline:3px solid #176de0;outline-offset:3px}

/* Comparable amounts first; all merchant links remain visible and tappable. */
.market-table{
  border:1px solid #dce7e2;
  border-radius:12px;
  font-variant-numeric:tabular-nums;
}
.market-table thead th{
  background:#edf5f1;
  color:#345b50;
  font-size:13px;
  font-weight:800;
}
.market-table th,.market-table td{padding:12px 11px}
.market-table .num strong{font-size:17px;font-weight:850}
.market-table .links a,
.market-table a.market-buy{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  margin:3px 8px 3px 0;
  border:1px solid #b7d7cc;
  border-radius:8px;
  padding:7px 11px;
  background:#fff;
  color:#126d59;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  vertical-align:middle;
}
.market-table .links a:hover,
.market-table a.market-buy:hover{background:#eaf7f1;text-decoration:underline}
.matrix-table td.is-cheapest{
  background:#e4f7ed;
  box-shadow:inset 0 0 0 2px #268e6c;
}
.matrix-table th .matrix-src{font-size:12px;line-height:1.4}
.product-root .product-table-scroll{scrollbar-color:#a4c9bb #eef6f2}
.iphone-faq details,.iphone-checklist details{
  border-color:#d7e5df;
  border-radius:12px;
}
#faq .iphone-faq-navi{pointer-events:none}
.related-list li{border-color:#d6e5de;background:#fff}

/* Respect narrow screens without squeezing merchant CTA text or money. */
@media(max-width:760px){
  .iphone-section{padding-block:10px}
  .iphone-copy .actions{margin-top:4px}
  .iphone-copy .note{margin-bottom:2px}
  #budget .section-desc{margin-bottom:2px}
  .budget-card{padding:8px}
  .budget-card .budget-total{font-size:32px}
  .budget-card>.btn{min-height:48px}
}
@media(max-width:520px){
  .iphone-copy h1{font-size:clamp(25px,6.1vw,29px);line-height:1.20}
  .iphone-copy .iphone-conclusion{font-size:clamp(24px,5.9vw,28px);line-height:1.18}
  .iphone-section h2{font-size:23px}
  .budget-grid{gap:8px}
  .budget-card .budget-total{font-size:30px}
  .budget-card .budget-why{font-size:14px;line-height:1.4}
  .market-table:not(.matrix-table) tr{padding:11px 0}
  .market-table .links a,.market-table a.market-buy{min-height:44px}
  #matrix .wrap{min-width:0}
  .matrix-table th,.matrix-table td{padding:8px 5px}
  .matrix-table .num strong{font-size:14px}
  .matrix-table th .matrix-src{font-size:12px}
}
@media(max-width:360px){
  .iphone-section h2{font-size:22px}
  .budget-card .budget-total{font-size:28px}
  .matrix-table th,.matrix-table td{padding:7px 3px}
}

/* Regression shield: visual improvements never revive invalid purchase links. */
.market-root.is-expired .budget-card>.btn{display:none!important}
.budget-card>.btn[hidden],
.market-table a[hidden],
.product-root .budget-card .market-buy[hidden]{display:none!important}


/* Manual 390px screenshot review (2026-11-03):
   The approved edge_peek artwork is allowed only with its straight edge on the
   viewport boundary. Move the upper half above the lead, which must not end
   with a dangling 1-2 character line. Scope to iPhone; Switch stays approved. */
@media(max-width:520px){
  .iphone-hero:has(+ .market-root) .iphone-mascot{
    top:8px;
    bottom:auto;
    right:calc(50% - 50vw);
    width:clamp(135px,40vw,160px);
    max-width:none;
    max-height:none;
    transform:none;
    object-fit:contain;
  }
  .iphone-hero:has(+ .market-root) .iphone-copy h1{
    max-width:calc(100% - 140px);
    text-wrap:balance;
  }
  .iphone-hero:has(+ .market-root) .iphone-copy .iphone-conclusion{
    max-width:calc(100% - 125px);
    text-wrap:balance;
  }
  .iphone-hero:has(+ .market-root) .iphone-copy > .note{
    max-width:calc(100% - 120px);
  }
  .iphone-hero:has(+ .market-root) .iphone-copy .iphone-lead{
    max-width:100%;
    padding-right:0;
    position:relative;
    z-index:2;
  }
}
@media(max-width:360px){
  .iphone-hero:has(+ .market-root) .iphone-mascot{width:135px;top:9px}
  .iphone-hero:has(+ .market-root) .iphone-copy h1{max-width:calc(100% - 118px)}
  .iphone-hero:has(+ .market-root) .iphone-copy .iphone-conclusion{max-width:calc(100% - 112px)}
  .iphone-hero:has(+ .market-root) .iphone-copy > .note{max-width:calc(100% - 104px)}
}


/* Second manual screenshot pass: 320px eyebrow vs. artwork, desktop
   bottom cropping. Keep the approved transparent edge art aligned with
   the viewport edge; keep the Switch mascot in its separate layout. */
@media(max-width:360px){
  .iphone-hero:has(+ .market-root) .iphone-mascot{
    top:34px;
    width:129px;
  }
  .iphone-hero:has(+ .market-root) .iphone-copy h1{
    max-width:calc(100% - 101px);
  }
}
/* Keep the already CI-approved desktop mascot footprint: minimum 300px
   is an explicit rule, and the edge_peek art uses the page boundary. */


