/*
Theme Name: Alan Spring Apps
Theme URI: https://app.alanspring.com/
Author: Alan Spring
Author URI: https://alanspring.com/
Description: A refined, responsive portfolio for independent Apple apps by Alan Spring.
Version: 1.3.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: alan-spring-apps
*/

:root {
  --bg: #f5f4f0;
  --paper: #fbfaf7;
  --ink: #10110f;
  --muted: #666963;
  --line: rgba(16, 17, 15, .12);
  --shadow: 0 30px 80px rgba(25, 28, 22, .11);
  --radius: 38px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.noise {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 30;
  width: min(1120px, calc(100% - 32px)); height: 62px; padding: 0 12px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid rgba(255,255,255,.64); border-radius: 22px;
  background: rgba(250,249,246,.76); backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 12px 36px rgba(28,30,24,.07);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 28px; height: 28px; color: white;
  border-radius: 9px; background: #121311; font-family: Georgia, serif; font-size: 15px;
}
.desktop-nav { display: flex; align-items: center; gap: 5px; }
.desktop-nav a { padding: 10px 15px; border-radius: 12px; color: #4e504b; font-size: 13px; transition: .25s ease; }
.desktop-nav a:hover { color: #111; background: rgba(0,0,0,.05); }
.menu-toggle, .mobile-menu { display: none; }

main { min-height: 90vh; overflow: hidden; }
.view { animation: view-in .7s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(12px); } }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero { min-height: 94vh; padding: 140px 0 70px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.18fr .92fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 20px; color: #73756f; font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; max-width: 720px; font-size: clamp(58px, 7vw, 100px); line-height: .92; letter-spacing: -.072em; word-spacing: .06em; font-weight: 630; }
.gradient-word { color: transparent; white-space: nowrap; background: linear-gradient(100deg,#ec8a4c 5%,#8d7bbc 50%,#469ec6 90%); background-clip: text; -webkit-background-clip: text; }
.hero-copy { margin: 30px 0 0; max-width: 520px; color: var(--muted); font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; letter-spacing: -.02em; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border-radius: 15px; background: #141512; color: white; font-size: 14px; font-weight: 620; border: 1px solid #141512; transition: transform .3s var(--ease), box-shadow .3s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0,0,0,.15); }
.button.secondary { color: #1c1d1a; background: rgba(255,255,255,.55); border-color: var(--line); }
.button.disabled { opacity: .55; cursor: default; }
.button.disabled:hover { transform: none; box-shadow: none; }
.arrow { font-size: 17px; transition: transform .25s ease; }
.button:hover .arrow, .text-link:hover .arrow { transform: translateX(3px); }

.icon-stage { position: relative; min-height: 540px; isolation: isolate; }
.stage-glow { position: absolute; z-index: -1; width: 430px; height: 430px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 44% 56% 61% 39%; background: radial-gradient(circle at 35% 30%,rgba(236,138,76,.22),rgba(141,123,188,.16) 48%,rgba(70,158,198,.12) 72%,transparent 73%); filter: blur(2px); animation: breathe 8s var(--ease) infinite; }
.icon-tile { --tilt: 0deg; position: absolute; display: grid; gap: 11px; padding: 12px 12px 13px; border: 1px solid rgba(255,255,255,.86); border-radius: 32px; background: rgba(255,255,255,.58); backdrop-filter: blur(18px) saturate(145%); box-shadow: 0 28px 62px rgba(27,29,24,.13); color: #3f413c; font-size: 12px; font-weight: 650; text-align: center; animation: float-card 7s var(--ease) infinite; transition: box-shadow .35s ease; }
.icon-tile img { width: 100%; border-radius: 25%; box-shadow: 0 16px 32px rgba(23,25,20,.16), inset 0 0 0 1px rgba(255,255,255,.35); }
.icon-tile:hover { animation-play-state: paused; box-shadow: 0 34px 72px rgba(27,29,24,.19); }
.seasons-tile { --tilt: -2deg; width: 215px; left: 36%; top: 56px; z-index: 3; }
.bnu-tile { --tilt: -7deg; width: 145px; left: 1%; top: 155px; z-index: 2; animation-delay: -2.1s; }
.pet-tile { --tilt: 6deg; width: 158px; right: 0; bottom: 20px; z-index: 2; animation-delay: -4.2s; }
@keyframes float-card { 0%,100% { transform: translate3d(0,0,0) rotate(var(--tilt)); } 50% { transform: translate3d(0,-12px,0) rotate(var(--tilt)); } }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(.96) rotate(0); opacity: .78; } 50% { transform: translate(-50%,-50%) scale(1.06) rotate(8deg); opacity: 1; } }

.section { padding: 105px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; max-width: 690px; font-size: clamp(42px, 5.5vw, 70px); line-height: .99; letter-spacing: -.055em; font-weight: 600; }
.section-heading p { max-width: 360px; margin: 0 0 5px; color: var(--muted); line-height: 1.55; }
.apps-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 20px; }
.app-card { position: relative; min-height: 570px; padding: 38px; border-radius: var(--radius); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s ease; }
.app-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.app-card.large { grid-column: span 7; }
.app-card.small { grid-column: span 5; }
.app-card.full { grid-column: 1/-1; min-height: 480px; }
.app-card.season-card { color: white; background: linear-gradient(145deg,#efa453 0%,#a77eae 51%,#4e9dca 100%); }
.app-card.pet-card { background: linear-gradient(145deg,#ff9d09,#ff5912); }
.app-card.bnu-card { color: white; background: radial-gradient(circle at 88% 12%,#0b7698 0%,#06465e 34%,#022b3a 72%,#01232f 100%); }
.app-card-content { position: relative; z-index: 2; max-width: 390px; }
.card-icon { width: 62px; height: 62px; margin-bottom: 28px; border-radius: 16px; object-fit: cover; box-shadow: 0 12px 25px rgba(0,0,0,.17); }
.app-card h3 { margin: 0 0 12px; font-size: clamp(35px,4vw,56px); line-height: 1; letter-spacing: -.05em; }
.app-card p { margin: 0; font-size: 17px; line-height: 1.5; opacity: .78; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 28px; font-size: 14px; font-weight: 650; }
.pet-paw { position: absolute; right: -35px; bottom: -45px; width: 320px; opacity: .2; transform: rotate(-12deg); border-radius: 25%; mix-blend-mode: screen; }
.card-art { position: absolute; right: -32px; bottom: -52px; width: 330px; opacity: .18; transform: rotate(-10deg); border-radius: 25%; mix-blend-mode: screen; pointer-events: none; }
.bnu-card .card-art { width: 390px; right: 40px; bottom: -155px; opacity: .2; transform: rotate(8deg); }
.bnu-card .app-card-content { max-width: 430px; }

.manifesto { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding-top: 80px; border-top: 1px solid var(--line); }
.manifesto h2 { margin: 0; font-size: 14px; letter-spacing: .13em; text-transform: uppercase; }
.manifesto-copy { margin: 0; font-size: clamp(31px,4.2vw,56px); line-height: 1.08; letter-spacing: -.045em; }
.manifesto-copy span { color: #8a8c86; }
.manifesto-copy a { color: inherit; text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; transition: color .25s; }
.manifesto-copy a:hover { color: #292a27; }

.legal-index { padding: 150px 0 100px; min-height: 80vh; }
.legal-index h1 { max-width: 850px; font-size: clamp(56px,8vw,98px); }
.legal-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 60px; }
.legal-card { padding: 27px; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; border-radius: 28px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.7); transition: .35s var(--ease); }
.legal-card:hover { transform: translateY(-5px); background: white; box-shadow: 0 20px 50px rgba(25,28,22,.08); }
.legal-card img { width: 52px; border-radius: 14px; }
.legal-card h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.035em; }
.legal-card p { margin: 0; color: var(--muted); font-size: 14px; }

.product-hero { padding: 135px 0 34px; }
.product-banner { position: relative; min-height: 430px; padding: 58px; display: flex; align-items: end; border-radius: 45px; overflow: hidden; color: white; }
.product-banner.product-seasons { background: linear-gradient(145deg,#efa453 0%,#a77eae 51%,#4e9dca 100%); }
.product-banner.product-bnu { background: radial-gradient(circle at 88% 12%,#0b7698 0%,#06465e 34%,#022b3a 72%,#01232f 100%); }
.product-banner.product-pet { background: linear-gradient(145deg,#ff9d09,#ff5912); color: #171713; }
.product-banner-copy { position: relative; z-index: 2; width: 100%; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.product-title-wrap { display: flex; align-items: center; gap: 22px; }
.product-title-wrap img { width: 84px; height: 84px; border-radius: 23px; object-fit: cover; box-shadow: 0 18px 35px rgba(0,0,0,.25); }
.product-title-wrap h1 { font-size: clamp(50px,7vw,86px); }
.product-title-wrap p { margin: 10px 0 0; opacity: .76; font-size: 18px; }
.product-body { padding: 64px 0 110px; }
.product-intro { max-width: 720px; }
.product-intro-copy p { margin: 0 0 22px; color: var(--muted); font-size: clamp(20px,2.3vw,28px); line-height: 1.4; letter-spacing: -.025em; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.feature-tags span { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.48); color: #555852; font-size: 13px; }
.download-note { margin: 18px 0 8px !important; color: #555852 !important; font-size: 15px !important; }
.gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px; margin-top: 55px; }
.gallery img { width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 30px; }
.gallery img.wide { grid-column: 1/-1; }
.simple-visual { margin-top: 80px; min-height: 460px; border-radius: 38px; display: grid; place-items: center; overflow: hidden; }
.simple-visual.pet { background: radial-gradient(circle at 42% 30%,#ffbd30,#ff6211 63%,#e8450a); }
.simple-visual.bnu { background: linear-gradient(140deg,#073f52,#001e2a); }
.simple-visual img { width: min(310px,56%); border-radius: 25%; box-shadow: 0 35px 70px rgba(0,0,0,.25); }

.terms { padding: 145px 0 110px; }
.terms-layout { display: grid; grid-template-columns: 270px minmax(0,720px); gap: 75px; justify-content: center; }
.terms-side { position: sticky; top: 115px; align-self: start; }
.terms-side img { width: 66px; border-radius: 18px; margin-bottom: 22px; }
.terms-side h1 { font-size: 34px; line-height: 1.04; letter-spacing: -.05em; }
.terms-side p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.back-link { display: inline-flex; margin-top: 23px; color: var(--muted); font-size: 13px; }
.terms-content { padding: 52px; background: rgba(255,255,255,.65); border-radius: 32px; border: 1px solid rgba(255,255,255,.78); }
.terms-content h2 { margin: 42px 0 12px; font-size: 23px; letter-spacing: -.025em; }
.terms-content h2:first-child { margin-top: 0; }
.terms-content p, .terms-content li { color: #595c56; font-size: 15px; line-height: 1.75; }
.terms-content ul { padding-left: 20px; }

.site-footer { width: min(1180px,calc(100% - 40px)); margin: 0 auto; padding: 30px 0 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); color: #747670; font-size: 12px; }
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.footer-brand { color: #292a27; }

@media (min-width: 801px) and (max-width: 1100px) {
  .hero h1 { font-size: clamp(52px, 6.4vw, 68px); }
  .hero .gradient-word { white-space: nowrap; }
}

@media (max-width: 800px) {
  .site-header { top: 10px; width: calc(100% - 20px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border: 0; border-radius: 13px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1.5px; background: #151613; transition: .3s; }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .mobile-menu { position: fixed; display: flex; flex-direction: column; gap: 8px; left: 0; right: 0; top: 71px; padding: 18px; border-radius: 22px; background: rgba(250,249,246,.96); box-shadow: 0 18px 40px rgba(0,0,0,.08); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s var(--ease); }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a { padding: 13px; font-size: 18px; }
  .hero { min-height: auto; padding: 145px 0 45px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero h1 { font-size: clamp(36px, calc((100vw - 40px) / 7.6), 72px); word-spacing: .08em; }
  .hero .gradient-word { white-space: nowrap; }
  .icon-stage { min-height: 440px; }
  .stage-glow { width: 330px; height: 330px; }
  .seasons-tile { width: 175px; left: 34%; top: 45px; }
  .bnu-tile { width: 120px; left: 0; top: 145px; }
  .pet-tile { width: 132px; right: 0; bottom: 16px; }
  .icon-tile { padding: 9px 9px 10px; border-radius: 25px; font-size: 10px; }
  .section { padding: 78px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 22px; }
  .app-card.large, .app-card.small, .app-card.full { grid-column: 1/-1; min-height: 510px; }
  .app-card { padding: 28px; }
  .manifesto { grid-template-columns: 1fr; gap: 30px; }
  .legal-grid { grid-template-columns: 1fr; }
  .product-hero { padding-top: 105px; }
  .product-banner { min-height: 390px; padding: 28px; border-radius: 32px; }
  .product-banner-copy { display: block; }
  .product-banner-copy .button { margin-top: 24px; }
  .product-title-wrap { align-items: flex-start; }
  .product-title-wrap img { width: 64px; height: 64px; }
  .product-title-wrap h1 { font-size: 52px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery img.wide { grid-column: auto; }
  .terms-layout { grid-template-columns: 1fr; gap: 32px; }
  .terms-side { position: static; }
  .terms-content { padding: 28px; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .site-footer p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
