/* App Store Localization product page. Same tokens and system type as the /blog pages; light only, no web fonts. */

:root {
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-gray: #1d1d1f;
  --apple-gray-light: #86868b;
  --apple-bg: #fbfbfd;
  --apple-bg-secondary: #f5f5f7;
  --apple-border: #d2d2d7;
  --apple-white: #ffffff;
  --apple-radius: 18px;
  --apple-radius-small: 12px;
  --apple-shadow: 0 4px 16px rgba(0,0,0,0.08);
  --apple-green: #34c759;

  /* Text-safe variants: #86868b is under 4.5:1 on white, so body copy uses these. */
  --text-2: #6e6e73;
  --green-text: #007d36;
  --red-text: #c4001a;
  --code-bg: #1d1d1f;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--apple-bg);
  color: var(--apple-gray);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--apple-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--sans); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.015em; color: var(--apple-gray); }
code { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; background: rgba(0, 0, 0, .05); padding: 0.08em 0.35em; border-radius: 5px; }

:focus-visible { outline: 3px solid var(--apple-blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.faq-in { max-width: 780px; }
.nw { white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 1001;
  background: var(--apple-blue); color: #fff; padding: 10px 16px; border-radius: 980px;
  font-weight: 600;
}
.skip:focus { top: 12px; }

/* Top bar: the blog's .nav-bar */
.bar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-border);
}
.bar-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--apple-gray); font-size: 19px; font-weight: 600; min-height: 44px; }
.brand:hover { text-decoration: none; }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--apple-blue); padding: 0 14px; border-radius: 980px; font-size: 16px; transition: background-color .2s; }
.bar-nav a:hover { background: var(--apple-bg-secondary); text-decoration: none; }

/* Buttons: blue pill primary, outlined blue secondary */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 980px;
  font: 400 17px/1 var(--sans); letter-spacing: -0.022em; border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-accent { background: var(--apple-blue); color: #fff; }
.btn-accent:hover { background: var(--apple-blue-hover); }
.btn-ghost, .btn-ghost-dark { color: var(--apple-blue); border-color: var(--apple-blue); background: transparent; }
.btn-ghost:hover, .btn-ghost-dark:hover { background: rgba(0, 113, 227, .06); }

/* Hero */
.hero { background: var(--apple-white); border-bottom: 1px solid var(--apple-border); }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-kicker { color: var(--apple-blue); font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); line-height: 1.07; letter-spacing: -0.005em; max-width: 16ch; }
.hero-lede { font-size: 21px; line-height: 1.381; color: var(--text-2); margin: 22px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 18px 0 0; font-size: 15px; color: var(--text-2); }

/* Pricing rule chart */
.rule-fig { margin: 0; background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius); padding: 22px 22px 18px; box-shadow: var(--apple-shadow); }
.rule-fig figcaption { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.5; }
.rule-chart { width: 100%; height: auto; font-family: var(--sans); letter-spacing: 0; }
.rule-chart .zone { fill: rgba(52, 199, 89, .08); stroke: rgba(52, 199, 89, .55); stroke-dasharray: 4 4; }
.rule-chart .axis { stroke: var(--apple-gray-light); stroke-width: 1.2; }
.rule-chart .guide { stroke: var(--apple-border); stroke-width: 1; stroke-dasharray: 3 5; }
.rule-chart .curve { fill: none; stroke: var(--apple-blue); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.rule-chart .jump { fill: none; stroke: var(--apple-blue); stroke-width: 2; stroke-dasharray: 4 5; opacity: .7; }
.rule-chart .dot { fill: var(--apple-green); }
.rule-chart text { fill: var(--text-2); }
.rule-chart .t-zone { fill: var(--green-text); font-size: 13px; font-weight: 600; }
.rule-chart .t-note { fill: var(--apple-gray); font-size: 12.5px; }
.rule-chart .t-tick { font-size: 12px; }
.rule-chart .t-axis { font-size: 12.5px; }

/* Page load: one staggered reveal, nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .hero-kicker, .hero h1, .hero-lede, .hero .cta-row, .hero-note, .pf-fig {
    animation: rise .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .hero h1 { animation-delay: .06s; }
  .hero-lede { animation-delay: .14s; }
  .hero .cta-row { animation-delay: .22s; }
  .hero-note { animation-delay: .28s; }
  .pf-fig { animation-delay: .2s; }
  .pf-list li { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; }
  .pf-list li:nth-child(2) { animation-delay: .38s; }
  .pf-list li:nth-child(3) { animation-delay: .44s; }
  .pf-list li:nth-child(4) { animation-delay: .5s; }
  .pf-list li:nth-child(5) { animation-delay: .56s; }
  .pf-list li:nth-child(6) { animation-delay: .62s; }
  .pf-list li:nth-child(7) { animation-delay: .68s; }
  .pf-list li:first-child { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero preflight illustration */
.pf-fig { margin: 0; }
.pf-fig figcaption { font-size: 14px; color: var(--text-2); margin-top: 12px; line-height: 1.5; }
.pf { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius); overflow: hidden; box-shadow: 0 20px 48px -20px rgba(0, 0, 0, .18); }
.pf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--apple-border); background: var(--apple-bg-secondary); }
.pf-title { font-weight: 600; font-size: 17px; }
.pf-count { color: var(--apple-blue); font-weight: 600; font-size: 15px; }
.pf-list { list-style: none; margin: 0; padding: 4px 0; }
.pf-list li { display: flex; align-items: baseline; gap: 14px; padding: 10px 20px; color: var(--apple-gray); }
.pf-list li + li { border-top: 1px solid var(--apple-bg-secondary); }
.pf-tag { flex: 0 0 3.2em; font-size: 12px; font-weight: 600; line-height: 1.7; text-transform: uppercase; letter-spacing: .04em; text-align: center; border-radius: 6px; }
.pf-ok { color: var(--green-text); background: rgba(52, 199, 89, .12); }
.pf-fix { color: #fff; background: var(--apple-blue); }
.pf-loc { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0; color: var(--text-2); }

/* Demo slot (hidden until the video exists) */
.demo { padding: 56px 0 0; }
.demo-slot { aspect-ratio: 16 / 10; border-radius: var(--apple-radius); overflow: hidden; background: var(--apple-gray); border: 1px solid var(--apple-border); }
.demo-slot video { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Sections: #fbfbfd and #f5f5f7 alternate, as on the blog and apple.com */
.sec { padding: 96px 0; }
.sec-alt { background: var(--apple-bg-secondary); }
.sec-head { max-width: 46em; margin-bottom: 40px; }
.sec h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1; margin-bottom: 18px; max-width: 22ch; }
.lede { font-size: 21px; line-height: 1.381; color: var(--text-2); }
.sec-head p:not(.lede) { color: var(--text-2); }

.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius-small); padding: 26px 28px 10px; }
.rule h3 { font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
.rule p { color: var(--text-2); }
.rule-check { border-left: 4px solid var(--apple-green); }
.pricing-top { margin-bottom: 48px; }
.also { margin-top: 32px; max-width: 52em; }
.also strong { color: var(--apple-gray); font-weight: 600; }
.fine { font-size: 14px; color: var(--text-2); max-width: 52em; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.split .sec-head { margin-bottom: 0; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.points li { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius-small); padding: 18px 22px; color: var(--text-2); }
.points strong { color: var(--apple-gray); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius-small); padding: 32px 32px 14px; }
.card h3 { font-size: 22px; line-height: 1.27; margin-bottom: 14px; }
.card p { color: var(--text-2); }

/* Feature grid: every area at a glance, cards like the blog's article cards */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.area { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius-small); padding: 26px 24px 12px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s; }
.area:hover { transform: translateY(-3px); box-shadow: var(--apple-shadow); border-color: var(--apple-blue); }
.area h3 { font-size: 21px; line-height: 1.27; margin-bottom: 10px; }
.area p { color: var(--text-2); font-size: 15px; line-height: 1.47; flex: 1; }
.area-pillar { background: linear-gradient(135deg, rgba(0, 113, 227, 0.04) 0%, rgba(0, 113, 227, 0.10) 100%), var(--apple-white); }
.area-more { display: inline-flex; align-items: center; min-height: 44px; align-self: flex-start; color: var(--apple-blue); font-weight: 500; font-size: 15px; }
.area-more::after { content: "\2192"; margin-left: 6px; transition: transform .15s ease; }
.area-more:hover::after { transform: translateX(3px); }

.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card ul { margin: 0 0 18px; padding-left: 1.1em; color: var(--text-2); display: grid; gap: 8px; }

/* Review sheet illustration: a light macOS sheet */
.split-fig { align-items: center; }
.sheet-fig { margin: 0; }
.sheet-fig figcaption { font-size: 14px; color: var(--text-2); margin-top: 12px; }
.sheet {
  background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius); overflow: hidden;
  box-shadow: 0 20px 48px -20px rgba(0, 0, 0, .18);
  font-size: 15px;
}
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--apple-border); font-weight: 600; }
.sheet-count { color: var(--text-2); font-weight: 400; }
.sheet-item { padding: 14px 20px; border-bottom: 1px solid var(--apple-border); }
.sheet-item p { margin: 0 0 4px; }
.sheet-field { font-weight: 600; }
.sheet-field span { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--text-2); margin-left: 6px; }
.was { color: var(--red-text); }
.was em { font-style: normal; opacity: .85; }
.becomes { color: var(--green-text); }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--apple-bg-secondary); }
.sheet-lock { color: var(--text-2); font-size: 14px; }
.sheet-btns { display: flex; gap: 8px; }
.fake-btn { padding: 5px 14px; border-radius: 980px; border: 1px solid var(--apple-border); font-size: 14px; background: var(--apple-white); }
.fake-primary { background: var(--apple-blue); color: #fff; border-color: var(--apple-blue); opacity: .45; }

/* Agents section: light like the rest, the code stays on a dark block */
.sec-dark { background: var(--apple-bg-secondary); }
.code-stack { display: grid; gap: 16px; min-width: 0; }
.code { margin: 0; background: var(--code-bg); border-radius: var(--apple-radius-small); overflow: hidden; min-width: 0; box-shadow: var(--apple-shadow); }
.code figcaption { font-size: 13px; color: #a1a1a6; padding: 10px 16px; border-bottom: 1px solid #3a3a3c; }
.code pre { margin: 0; padding: 16px; overflow-x: auto; font: 400 14px/1.65 var(--mono); letter-spacing: 0; color: #f5f5f7; }
.code pre code { font-size: inherit; color: inherit; background: none; padding: 0; border-radius: 0; }
.code .c { color: #98989d; }

/* Offer */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }
.plan { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius); padding: 32px; display: flex; flex-direction: column; }
.plan h3 { font-size: 21px; }
.plan-price { font-size: 48px; font-weight: 600; letter-spacing: -0.01em; margin: 10px 0 14px; line-height: 1; }
.plan-price span { font-size: 17px; font-weight: 400; letter-spacing: -0.022em; color: var(--text-2); }
.plan ul { margin: 0 0 26px; padding-left: 1.1em; color: var(--text-2); display: grid; gap: 8px; flex: 1; }
.plan .btn { align-self: flex-start; }
.plan-soon { margin: 0; color: var(--text-2); font-weight: 600; }
.plan-paid { border: 2px solid var(--apple-blue); box-shadow: var(--apple-shadow); }

/* FAQ */
#faq h2 { margin-bottom: 28px; }
details { background: var(--apple-white); border: 1px solid var(--apple-border); border-radius: var(--apple-radius-small); margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 600; min-height: 44px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--apple-blue); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 20px 6px; color: var(--text-2); }

/* Closer and footer */
.closer { background: var(--apple-white); padding: 72px 0; border-top: 1px solid var(--apple-border); }
.closer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closer p { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.01em; margin: 0; max-width: 24ch; line-height: 1.2; }
.foot { background: var(--apple-bg); color: var(--text-2); border-top: 1px solid var(--apple-border); padding: 28px 0 40px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot nav a { display: inline-block; padding: 10px 0; }

/* Layout breakpoints */
@media (max-width: 1060px) {
  .bar-nav { display: none; }
  .brand { margin-right: auto; }
}
@media (max-width: 960px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 40px; }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .areas { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 734px) {
  .hero h1 { font-size: 34px; }
  .hero-lede, .lede { font-size: 19px; }
  .sec h2 { font-size: 28px; }
  .brand { font-size: 17px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero-in { padding-top: 48px; padding-bottom: 56px; }
  .hero-lede { font-size: 17px; }
  .lede { font-size: 17px; }
  .sec { padding: 64px 0; }
  .rules, .plans { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .pf-list li { padding: 10px 16px; }
  .cta-row .btn { flex: 1 1 100%; }
  .brand span { font-size: 16px; }
  .bar-in { gap: 12px; min-height: 56px; }
  .brand span, .bar .btn { white-space: nowrap; }
  .bar .btn-small { padding: 0 16px; }
  .plan, .card { padding: 24px 24px 10px; }
  .plan { padding-bottom: 24px; }
  .plan-price { font-size: 40px; }
}
@media (max-width: 360px) {
  .brand img { display: none; }
  .brand span { font-size: 15px; }
  .bar .btn-small { padding: 0 14px; font-size: 14px; }
}
/* A grid item defaults to its content's width; let the review sheet illustration shrink on narrow phones. */
.split > *, .hero-in > * { min-width: 0; }
.sheet { overflow-wrap: anywhere; }

/* Privacy and terms pages */
.legal { max-width: 760px; padding: 56px 24px 72px; }
.legal h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--text-2); margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--apple-gray); }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
