/* Auto Localize home page (all classes prefixed al- to stay clear of shared site.css). */

/* ---------- hero ---------- */
.al-hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.al-glyphs { position: absolute; inset: 0; pointer-events: none; }
.al-glyphs span { position: absolute; font-family: var(--font-display); font-weight: 700; color: var(--mint); opacity: 0;
  animation: al-drift linear infinite; will-change: transform, opacity; }
.al-glyphs span.g { color: var(--gold); }
@keyframes al-drift { 0% { transform: translateY(30px) rotate(-6deg); opacity: 0; } 15% { opacity: var(--o, .18); } 85% { opacity: var(--o, .18); } 100% { transform: translateY(-120px) rotate(6deg); opacity: 0; } }
.al-hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.al-hero .display { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; margin-bottom: 22px; }
.al-morph { display: inline-block; min-width: 3ch; transition: opacity .35s, transform .35s, filter .35s; }
.al-morph.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.al-hero .lead { max-width: 560px; }
.al-platform { color: var(--text-3); font-size: 14.5px; margin-top: 16px; }

.al-stage { position: relative; min-height: 470px; display: grid; place-items: center; }
.al-console { position: relative; z-index: 2; width: min(100%, 470px); border-radius: 20px; background: linear-gradient(170deg, rgba(19,56,66,.92), rgba(9,33,39,.94));
  border: 1px solid rgba(127,230,207,.18); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.3) inset; overflow: hidden; backdrop-filter: blur(16px); }
.al-console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.al-console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .al-console-bar i:nth-child(2) { background: #febc2e; } .al-console-bar i:nth-child(3) { background: #28c840; }
.al-console-bar span { margin-left: 8px; font: 600 12.5px var(--font-mono); color: var(--text-3); }
.al-console-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 6px; }
.al-lang { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.al-flag { font-size: 24px; transition: transform .4s; } .al-flag.pop { transform: scale(1.35) rotate(-8deg); }
.al-ring { position: relative; width: 52px; height: 52px; }
.al-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.al-ring circle { fill: none; stroke: rgba(127,230,207,.14); stroke-width: 4; }
.al-ring circle.p { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 100.5; transition: stroke-dashoffset .5s ease; }
.al-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; }
.al-rows { padding: 6px 10px 10px; }
.al-row { display: grid; grid-template-columns: 1fr 1.25fr auto; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; min-height: 40px; }
.al-row + .al-row { border-top: 1px solid rgba(127,230,207,.07); }
.al-row code { font: 12.5px var(--font-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row span { font-weight: 600; font-size: 14.5px; color: var(--text); min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.al-row span.typing::after { content: "▍"; color: var(--gold); animation: al-blink .8s steps(1) infinite; }
.al-row span.keep { color: var(--text-2); }
.al-row.active { background: rgba(246,196,92,.08); }
.al-row em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 7px; border-radius: 99px; color: var(--text-3); }
.al-row em.pl { color: var(--violet); background: rgba(155,140,255,.14); } .al-row em.lk { color: var(--gold); background: rgba(246,196,92,.12); }
.al-row em.ok { color: #57e3a2; background: rgba(87,227,162,.12); }
@keyframes al-blink { 50% { opacity: 0; } }
.al-console-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.al-wand { color: var(--gold); animation: al-spin 4s linear infinite; display: inline-block; }
@keyframes al-spin { to { transform: rotate(360deg); } }
.al-orbit { position: absolute; inset: -10px; z-index: 1; animation: al-spin 60s linear infinite; }
.al-orbit span { position: absolute; left: 50%; top: 50%; font-size: 26px; transform: rotate(calc(var(--i) * 36deg)) translateY(-250px) rotate(calc(var(--i) * -36deg));
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.al-orbit span::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(127,230,207,.25); background: rgba(6,26,31,.6); z-index: -1; }

/* ---------- formats marquee ---------- */
.al-formats { padding: 18px 0 8px; }
.al-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.al-track { display: flex; gap: 12px; width: max-content; animation: al-marquee 40s linear infinite; }
.al-track span { white-space: nowrap; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: rgba(15,45,53,.7); font: 600 14px var(--font-mono); color: var(--text-2); }
@keyframes al-marquee { to { transform: translateX(-50%); } }

/* ---------- windows ---------- */
.al-window-section { padding: 40px 0 20px; }
.al-window { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid rgba(127,230,207,.16); box-shadow: var(--shadow-lg), 0 0 120px -40px rgba(43,179,166,.45);
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; background: var(--night-2); }
.al-window img { display: block; width: 100%; height: auto; }
.al-window.small { box-shadow: var(--shadow-lg), 0 0 90px -40px rgba(246,196,92,.4); }

/* ---------- steps ---------- */
.al-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.al-step { text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 20px 20px 18px; position: relative; overflow: hidden; transition: border-color .3s, background .3s; }
.al-step.on { border-color: rgba(246,196,92,.5); background: linear-gradient(160deg, rgba(246,196,92,.10), rgba(15,45,53,1) 60%); }
.al-step .n { font: 800 13px var(--font-mono); color: var(--gold); }
.al-step h3 { margin: 8px 0 6px; font-size: 21px; } .al-step p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.al-step i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(127,230,207,.08); }
.al-step i b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.al-step.on i b { animation: al-fill 6s linear forwards; }
@keyframes al-fill { to { width: 100%; } }
.al-step-shots { position: relative; display: grid; }
.al-step-shots img { grid-area: 1 / 1; width: 100%; height: auto; border-radius: 16px; border: 1px solid rgba(127,230,207,.16); box-shadow: var(--shadow-lg); opacity: 0; transform: scale(.985); transition: opacity .6s, transform .6s; }
.al-step-shots img:nth-child(2) { width: 62%; justify-self: center; }
.al-step-shots img.on { opacity: 1; transform: none; }

/* ---------- bento ---------- */
.al-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.al-tile { grid-column: span 2; border: 1px solid var(--line); background: var(--card); border-radius: 22px; padding: 24px; overflow: hidden; position: relative; }
.al-tile h3 { font-size: 21px; margin: 0 0 6px; } .al-tile p { color: var(--text-2); font-size: 15.5px; margin: 0 0 16px; }
.al-plural, .al-ph { grid-column: span 3; }
.al-forms { display: grid; gap: 8px; }
.al-forms div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.al-forms b { width: 28px; font-size: 18px; }
.al-forms span { font-size: 13px; padding: 5px 10px; border-radius: 9px; background: rgba(155,140,255,.13); color: #cfc7ff; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.in .al-forms span { opacity: 1; transform: none; }
.al-forms div:nth-child(2) span { transition-delay: .25s; } .al-forms div:nth-child(3) span { transition-delay: .5s; } .al-forms div:nth-child(4) span { transition-delay: .75s; }
.al-phdemo { display: grid; gap: 6px; font-size: 15.5px; font-weight: 600; }
.al-phdemo .arrow { color: var(--text-3); padding-left: 8px; }
.al-phdemo mark { background: rgba(246,196,92,.18); color: var(--gold); border: 1px dashed rgba(246,196,92,.6); border-radius: 6px; padding: 0 5px; font-family: var(--font-mono); animation: al-glow 2.4s ease-in-out infinite; }
@keyframes al-glow { 50% { box-shadow: 0 0 18px rgba(246,196,92,.45); } }
.al-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.al-terms span { font-size: 13px; padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line); background: rgba(127,230,207,.06); }
.al-terms span.lock { border-color: rgba(246,196,92,.35); color: var(--gold); }
.al-count b { display: block; font: 800 54px/1 var(--font-display); background: linear-gradient(100deg, var(--mint), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.al-count span { color: var(--text-3); font-size: 14px; }
.al-safe pre { margin: 0; font: 12.5px/1.6 var(--font-mono); background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: hidden; }
.al-safe pre .c { color: var(--text-3); } .al-safe pre .a { color: #57e3a2; }
.al-review { grid-column: span 6; }
.al-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.al-pills span { padding: 7px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; background: rgba(127,230,207,.08); }
.al-pills .m { color: #57e3a2; } .al-pills .r { color: var(--gold); } .al-pills .t { color: var(--mint); }

/* ---------- models ---------- */
.center-lead { margin-left: auto; margin-right: auto; text-align: center; }
.al-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.al-model { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 22px; transition: transform .25s, border-color .25s; }
.al-model:hover { transform: translateY(-3px); border-color: rgba(127,230,207,.35); }
.al-model .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: var(--mint); background: rgba(127,230,207,.1); margin-bottom: 12px; }
.al-model h3 { font-size: 19px; margin: 0 0 6px; } .al-model p { color: var(--text-2); margin: 0; font-size: 15px; }
.al-model.hero-model { background: linear-gradient(160deg, rgba(246,196,92,.14), rgba(15,45,53,1) 65%); border-color: rgba(246,196,92,.4); }
.al-model.hero-model .ico { color: #2a1a02; background: linear-gradient(140deg, #ffe39a, var(--gold)); }
.al-model .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }

/* ---------- App Store Connect ---------- */
.al-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.al-checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.al-checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.al-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #04201c; background: var(--mint); }

/* ---------- studio demo ---------- */
.al-studio-demo { margin-bottom: 40px; }
.al-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.al-switch button, .al-tabs button { font: 600 14.5px var(--font); color: var(--text-2); background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; cursor: pointer; transition: all .2s; }
.al-switch button.on, .al-tabs button.on { color: #2a1a02; background: linear-gradient(100deg, #ffe39a, var(--gold)); border-color: transparent; }
.al-designs { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 22px; }
.al-design { margin: 0; aspect-ratio: 1320 / 2868; border-radius: 22px; padding: 9% 8% 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; box-shadow: var(--shadow-lg); }
.al-design.d1 { background: linear-gradient(170deg, #3fb7a8, #0e3f45); } .al-design.d2 { background: linear-gradient(170deg, #6c7cff, #3aa2d8); } .al-design.d3 { background: linear-gradient(170deg, #ff8f6b, #8c3fa8); }
.al-design figcaption { text-align: center; color: #fff; min-height: 30%; display: flex; flex-direction: column; gap: 6px; transition: opacity .3s, transform .3s; }
.al-design figcaption b { font: 800 clamp(16px, 1.9vw, 23px)/1.12 var(--font-display); text-wrap: balance; }
.al-design figcaption small { font-size: clamp(11px, 1.1vw, 13.5px); opacity: .85; }
.al-device { width: 78%; border-radius: 28px 28px 0 0; padding: 7px 7px 0; background: #111; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); margin-top: auto; }
.al-device img { display: block; width: 100%; height: auto; border-radius: 22px 22px 0 0; transition: opacity .3s; }
.al-device.tilt { transform: rotate(-6deg) translateY(8px); }
.al-designs.swap figcaption, .al-designs.swap .al-device img { opacity: 0; }
.al-designs.swap figcaption { transform: translateY(-6px); }
.al-note { text-align: center; color: var(--text-3); font-size: 13.5px; margin-top: 18px; }

/* ---------- gallery ---------- */
.al-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.al-frames { display: grid; }
.al-frames img { grid-area: 1 / 1; opacity: 0; transition: opacity .45s; }
.al-frames img.on { opacity: 1; }

/* ---------- pricing ---------- */
.al-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 900px; margin: 0 auto; }
.al-plan { border: 1px solid var(--line); background: var(--card); border-radius: 24px; padding: 28px; }
.al-plan h3 { font-size: 26px; margin: 0; } .al-plan h3 span { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 8px; }
.al-plan.pro { border-color: rgba(246,196,92,.45); background: linear-gradient(165deg, rgba(246,196,92,.13), rgba(15,45,53,1) 60%); }
.al-plan .badges { margin-top: 22px; }
.al-fine { text-align: center; color: var(--text-3); font-size: 13.5px; margin-top: 18px; }

.al-cta { padding: 90px 0; } .al-cta img { display: block; margin-left: auto; margin-right: auto; border-radius: 26px; margin-bottom: 18px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.al-cta .badges { justify-content: center; margin-top: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .al-hero-grid, .al-split { grid-template-columns: 1fr; gap: 36px; }
  .al-stage { min-height: 420px; }
  .al-orbit span { transform: rotate(calc(var(--i) * 36deg)) translateY(-215px) rotate(calc(var(--i) * -36deg)); }
  .al-bento { grid-template-columns: 1fr 1fr; } .al-tile, .al-plural, .al-ph { grid-column: span 1; } .al-safe, .al-review { grid-column: span 2; }
  .al-models { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .al-hero { padding-top: 40px; }
  .al-stage { min-height: 0; }
  .al-orbit { display: none; }
  .al-row { grid-template-columns: 1fr 1.2fr; } .al-row em { display: none; }
  .al-steps, .al-bento, .al-models, .al-plans { grid-template-columns: 1fr; }
  .al-tile, .al-plural, .al-ph, .al-safe, .al-review { grid-column: span 1; }
  .al-designs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .al-design { border-radius: 14px; } .al-design figcaption small { display: none; } .al-design figcaption b { font-size: 12.5px; } .al-device { border-radius: 16px 16px 0 0; padding: 4px 4px 0; } .al-device img { border-radius: 12px 12px 0 0; }
  .al-step-shots img:nth-child(2) { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .al-glyphs, .al-orbit { display: none; }
  .al-track, .al-wand, .al-phdemo mark { animation: none; }
  .al-step.on i b { animation: none; width: 100%; }
  .al-window { transform: none !important; }
}
