/* ===== SafalSites — main stylesheet (white and black style) =====
 * The page is white; some sections (.section-alt) and the footer are black.
 * The accent colour comes from one palette below; <html data-palette="...">
 * picks it.
 */
:root {
  --bg: #ffffff;
  --bg-alt: #0a0a0a;
  --card: #f6f6f7;
  --card-hover: #efeff1;
  --border: #e4e4e7;
  --text: #0a0a0a;
  --text-soft: #3f3f46;
  --muted: #5f6470;
  --chip: rgba(0, 0, 0, 0.03);
  --input: #ffffff;
  --nav: rgba(255, 255, 255, 0.85);
  --line: #06c755;
  --radius: 18px;
  --glow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 14px 40px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(90deg, var(--accent), var(--accent2));
  --surface: #ffffff;   /* panels and boxes on the page */
  --ink: #0a0a0a;       /* solid black highlights (buttons, active chips) */
  --on-ink: #ffffff;
}

/* Dark mode (the 🌙 button in the menu; js/main.js sets data-theme) */
html[data-theme="dark"] {
  --bg: #0b0b0c; --card: #161618; --card-hover: #1d1d20; --border: #2a2a2e;
  --text: #f4f4f5; --text-soft: #d4d4d8; --muted: #a1a1aa; --chip: rgba(255, 255, 255, 0.05);
  --input: #121214; --nav: rgba(11, 11, 12, 0.85);
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 14px 40px rgba(0, 0, 0, 0.5);
  --surface: #151517; --ink: #fafafa; --on-ink: #0a0a0a;
  --accent-l: #ffffff; --accent2-l: #d4d4d8; --on-accent-l: #0a0a0a;
  color-scheme: dark;
}
[data-theme="dark"] .section-alt, [data-theme="dark"] .footer { --bg: #121214; --card: #1a1a1d; }
[data-theme="dark"] .hero { background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.04), transparent 42%); }

/* Accent colour palettes: [light-page colours] and [-d: black-section colours] */
:root, [data-palette="mono"] {
  --accent-l: #0a0a0a; --accent2-l: #52525b; --on-accent-l: #ffffff;
  --accent-d: #ffffff; --accent2-d: #d4d4d8; --on-accent-d: #0a0a0a;
}
[data-palette="mint"] {
  --accent-l: #059669; --accent2-l: #2563eb; --on-accent-l: #ffffff;
  --accent-d: #7cf2c9; --accent2-d: #7aa2ff; --on-accent-d: #071018;
}
[data-palette="blue"] {
  --accent-l: #2563eb; --accent2-l: #7c3aed; --on-accent-l: #ffffff;
  --accent-d: #60a5fa; --accent2-d: #a78bfa; --on-accent-d: #0a0a0a;
}
[data-palette="orange"] {
  --accent-l: #ea580c; --accent2-l: #e11d48; --on-accent-l: #ffffff;
  --accent-d: #fb923c; --accent2-d: #fb7185; --on-accent-d: #0a0a0a;
}
:root, [data-palette] { --accent: var(--accent-l); --accent2: var(--accent2-l); --on-accent: var(--on-accent-l); }

/* Black sections */
.section-alt, .footer {
  --bg: #0a0a0a;
  --card: #151515;
  --card-hover: #1c1c1c;
  --border: #27272a;
  --text: #f5f5f5;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --chip: rgba(255, 255, 255, 0.05);
  --input: #111111;
  --glow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.5);
  --accent: var(--accent-d); --accent2: var(--accent2-d); --on-accent: var(--on-accent-d);
  --gradient: linear-gradient(90deg, var(--accent), var(--accent2));
  background: var(--bg); color: var(--text);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; } /* keep headings visible below the sticky nav */
body {
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.hidden { display: none; }

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.3; font-weight: 900; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); line-height: 1.35; font-weight: 800; margin-bottom: 10px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.lead { font-size: 1.05rem; color: var(--muted); margin: 18px 0 30px; max-width: 560px; }
.sub { color: var(--muted); margin-bottom: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.82rem;
  border: 1px solid var(--border); background: var(--chip); padding: 6px 14px; border-radius: 30px; margin-bottom: 14px;
}
p.eyebrow.center { display: table; margin-inline: auto; color: var(--accent); letter-spacing: 0.08em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); box-shadow: 0 0 8px var(--line); flex-shrink: 0; }
.highlight { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.btn {
  display: inline-block; background: var(--gradient); color: var(--on-accent); font-weight: 800;
  padding: 14px 26px; border-radius: 12px; border: none;
  cursor: pointer; font-size: 1rem; font-family: inherit; transition: 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.btn-outline { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-outline:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn-line { background: var(--line); color: #fff; }
.btn-line:hover { box-shadow: 0 10px 30px rgba(6, 199, 85, 0.3); }
.btn-small { padding: 9px 16px; font-size: 0.88rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Navbar */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { font-size: 1.3rem; font-weight: 800; color: var(--text); white-space: nowrap; }
.logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--muted); font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--text); }
.lang-toggle {
  border: 1px solid var(--border); background: transparent; color: var(--text);
  font-family: inherit; font-weight: 600; font-size: 0.85rem; line-height: 1;
  padding: 9px 14px; border-radius: 30px; cursor: pointer; min-width: 64px; transition: 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Japanese typography */
html[lang="ja"] h1, html[lang="ja"] h2 { letter-spacing: 0; }
html[lang="ja"] body { word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }

/* Hero */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 0, 0, 0.035), transparent 42%),
    radial-gradient(circle at 8% 70%, rgba(0, 0, 0, 0.025), transparent 38%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; max-width: 480px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--accent); line-height: 1.3; }
.stat span { font-size: 0.78rem; color: var(--muted); }

/* Hero visual (the deck of sample sites is styled further down) */
.hero-visual { position: relative; height: 460px; }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: 0.25s; }
.card:hover { background: var(--card-hover); box-shadow: var(--glow); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: 0.95rem; }
.icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 14px; background: var(--chip); border: 1px solid var(--border); }

/* Portfolio */
.work-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: 0.25s; display: block; }
.work-card:hover { box-shadow: var(--glow); transform: translateY(-4px); }
.work-thumb { height: 180px; display: grid; place-items: center; color: #fff; font-size: 1.5rem; font-weight: 800; }
.thumb-restaurant { background: linear-gradient(135deg, #b91c1c, #f97316); }
.thumb-salon { background: linear-gradient(135deg, #be185d, #f9a8d4); }
.thumb-shop { background: linear-gradient(135deg, #15803d, #84cc16); }
.thumb-ramen { background: linear-gradient(135deg, #151212, #c8102e); }
.thumb-cafe { background: linear-gradient(135deg, #4f6f52, #d4a373); }
.thumb-nail { background: linear-gradient(135deg, #5b4b8a, #f3c4d6); }
.work-info { padding: 20px 22px 22px; }
.work-info p { color: var(--muted); margin-bottom: 10px; font-size: 0.95rem; }
.styles-badge { display: inline-block; font-size: 0.8rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; margin-bottom: 12px; }
.work-info .link { display: block; }
.link { font-weight: 700; color: var(--accent); }

/* Pricing */
.price-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; }
.price-card.featured {
  border: 1px solid transparent; transform: scale(1.03); box-shadow: var(--glow);
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--gradient) border-box;
}
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: var(--on-accent); font-size: 0.75rem; font-weight: 800; padding: 4px 14px; border-radius: 20px; white-space: nowrap; }
.price { font-size: 2.3rem; font-weight: 800; margin-top: 4px; }
.price-card.featured .price { color: var(--accent); }
.price-note { color: var(--muted); margin-bottom: 16px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.price-card li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.small-note { margin-top: 28px; color: var(--muted); }

/* Steps */
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 20px; text-align: center; }
.step-num { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--gradient); color: var(--on-accent); font-weight: 800; font-size: 1.25rem; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* Contact */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 10px; }
.contact-list li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 30px; box-shadow: var(--glow); display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-soft); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; width: 100%;
  background: var(--input); color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }

/* About */
.about-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 50px; align-items: center; }
.avatar {
  width: 220px; height: 220px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; font-size: 5.5rem; font-weight: 900; color: var(--on-accent);
  background: var(--gradient); box-shadow: var(--glow);
}
.about-inner .lead { max-width: none; }
.about-points { list-style: none; display: grid; gap: 10px; }
.about-points li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 18px; }

/* FAQ */
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: 12px; margin-top: 36px; }
.faq { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; transition: 0.2s; }
.faq[open] { border-color: var(--accent); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.faq[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding-bottom: 18px; }

.form-note { font-size: 0.8rem; color: var(--muted); text-align: center; }

/* Simple content pages (privacy, thanks) */
.page { padding: 70px 0 90px; }
.page-inner { max-width: 780px; }
.page h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 10px; }
.page h2 { font-size: 1.2rem; margin: 34px 0 8px; }
.page p, .page li { color: var(--text-soft); }
.page ul { margin-left: 1.3em; }
.page .updated { color: var(--muted); font-size: 0.9rem; }
.thanks { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.thanks .check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 2.4rem; font-weight: 900; color: var(--on-accent); background: var(--gradient); box-shadow: var(--glow); }
.thanks .hero-buttons { justify-content: center; }

/* Footer */
.footer-links { margin-top: 6px; }
.footer-links a { color: var(--muted); text-decoration: underline; }
.footer { border-top: 1px solid var(--border); color: var(--muted); padding: 28px 0; text-align: center; font-size: 0.9rem; }

/* LINE buttons */
.line-dot { display: inline-grid; place-items: center; background: var(--line); color: #fff; font-size: 0.6rem; font-weight: 800; border-radius: 6px; padding: 3px 4px; vertical-align: middle; }
.line-float { position: fixed; right: 20px; bottom: 90px; width: 58px; height: 58px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; box-shadow: 0 8px 24px rgba(0,0,0,0.45); z-index: 60; }
.line-float:hover { filter: brightness(1.08); }

/* WhatsApp floating button */
.whatsapp-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 24px rgba(0,0,0,0.45); z-index: 60; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .contact-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { height: 340px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .lang-toggle { margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg); padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); margin: 0; }
  .nav-links.open { display: flex; }
  .hero { padding: 50px 0 60px; }
  .hero-buttons .btn { display: block; width: 100%; text-align: center; }
  .section { padding: 64px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-visual { height: 250px; order: -1; margin: -20px -16px 0; }
  .about-inner { grid-template-columns: minmax(0, 1fr); gap: 26px; text-align: left; }
  .avatar { width: 120px; height: 120px; font-size: 3rem; }
}

/* ===== Hero text animation (js/main.js wraps the headline's words in .w) ===== */
.hero h1 { position: relative; z-index: 0; }
.hero h1 .w {
  display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(2deg); filter: blur(6px);
  animation: word-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 65ms + 250ms);
}
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* Marker highlight: a black bar sweeps in behind the word, which turns white */
.hero .highlight {
  background: none; -webkit-background-clip: initial; background-clip: initial;
  color: var(--text); position: relative; padding: 0 0.14em; margin: 0 0.02em;
  animation: ink-out 0.35s ease forwards; animation-delay: calc(var(--mark-delay, 1.1s) + 0.2s);
}
.hero .highlight::before {
  content: ""; position: absolute; inset: 0.1em 0 0.02em; z-index: -1; border-radius: 0.14em;
  background: var(--text); transform: scaleX(0); transform-origin: left center;
  animation: mark-in 0.6s cubic-bezier(0.7, 0, 0.2, 1) forwards; animation-delay: var(--mark-delay, 1.1s);
}
@keyframes mark-in { to { transform: scaleX(1); } }
@keyframes ink-out { to { color: var(--bg); } }

/* The rest of the hero text comes in after the headline */
.hero-text > :not(h1) {
  opacity: 0; transform: translateY(16px);
  animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-text > .eyebrow { animation-delay: 0.05s; }
.hero-text > .lead { animation-delay: var(--after, 1.2s); }
.hero-text > .hero-buttons { animation-delay: calc(var(--after, 1.2s) + 0.15s); }
.hero-show, .hero .stats {
  opacity: 0; transform: translateY(16px);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-show { animation-delay: calc(var(--after, 1.2s) + 0.1s); }
.hero .stats { animation-delay: calc(var(--after, 1.2s) + 0.3s); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .hero-text > :not(h1), .hero-show, .hero .stats { animation: none; opacity: 1; transform: none; filter: none; }
  .hero .highlight { animation: none; color: var(--bg); }
  .hero .highlight::before { animation: none; transform: none; }
}

/* ===== Section headings: animate when scrolled into view (js/main.js) ===== */
.anim-headings .rise-group h2 .w {
  display: inline-block; opacity: 0; transform: translateY(0.6em); filter: blur(5px);
}
.anim-headings .rise-group.in h2 .w {
  animation: word-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.anim-headings .rise-group .rise-before,
.anim-headings .rise-group .rise-after { opacity: 0; transform: translateY(12px); }
.anim-headings .rise-group.in .rise-before { animation: fade-up 0.6s ease forwards; }
.anim-headings .rise-group.in .rise-after {
  animation: fade-up 0.7s ease forwards;
  animation-delay: calc(var(--words, 3) * 55ms + 450ms);
}

/* ===== Sample website cards fly in and land (js/main.js adds .in) ===== */
.anim-cards #work .grid { perspective: 1200px; }
.anim-cards #work .work-card:not(.in) { opacity: 0; }
.anim-cards #work .work-card.in {
  animation: card-land 1.1s cubic-bezier(0.2, 0.8, 0.25, 1) backwards;
  animation-delay: calc(var(--n, 0) * 130ms);
  transform-origin: 50% 100%;
}
@keyframes card-land {
  0%   { opacity: 0; transform: translate3d(0, 140px, -260px) rotateX(38deg) rotateY(var(--tilt, 0deg)) scale(0.85); }
  55%  { opacity: 1; transform: translate3d(0, -14px, 0) rotateX(-4deg) rotateY(0deg) scale(1.02); }
  75%  { transform: translate3d(0, 4px, 0) rotateX(1.5deg) scale(0.995); }
  100% { opacity: 1; transform: none; }
}

/* ===== Portfolio cards: real screenshots that change between the 3 styles ===== */
.work-thumb.previews { position: relative; display: block; height: auto; aspect-ratio: 16 / 10; overflow: hidden; }
.previews img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.05); transition: opacity 0.9s ease, transform 3.2s ease;
}
.previews img.on { opacity: 1; transform: scale(1); }
.style-chip {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  background: rgba(10, 10, 10, 0.82); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1;
  padding: 6px 11px; border-radius: 20px; opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s;
}
.style-chip.on { opacity: 1; transform: none; }
.work-card:hover .previews img.on { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .previews img, .style-chip { transition: none; } }


/* ===== Hero layout: headline on top, orbit (left) + explanation (right) ===== */
/* Split intro (like a luxury-brand site): serif headline left, big picture right */
.hero-intro { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-head { text-align: left; }
.hero-head .lead { margin: 18px 0 26px; }
.hero-head h1, .serif {
  font-family: "Playfair Display", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 600; letter-spacing: -0.015em;
}
.hero-head h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); line-height: 1.15; }
html[lang="ja"] .hero-head h1 { line-height: 1.35; font-size: clamp(2rem, 4.4vw, 3.3rem); }

.hero-photo {
  position: relative; height: min(600px, 72vh); min-height: 420px; border-radius: 28px; overflow: hidden;
  background: #111; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  clip-path: inset(0 0 0 100% round 28px); animation: photo-in 1.1s cubic-bezier(0.7, 0, 0.2, 1) 0.35s forwards;
}
@keyframes photo-in { to { clip-path: inset(0 0 0 0 round 28px); } }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center;
  clip-path: inset(0 0 0 100%); z-index: 0;
}
/* New picture wipes in from the right while slowly zooming out (Ken Burns) */
.hero-photo img.on { z-index: 1; animation: ph-wipe 1.1s cubic-bezier(0.7, 0, 0.2, 1) forwards, ph-zoom 6s cubic-bezier(0.2, 0.6, 0.3, 1) forwards; }
/* Old picture drifts left underneath (parallax) */
.hero-photo img.was { z-index: 0; clip-path: inset(0); animation: ph-out 1.1s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
@keyframes ph-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes ph-zoom { from { transform: scale(1.22); } to { transform: scale(1.02); } }
@keyframes ph-out { from { transform: scale(1.02); filter: brightness(1); } to { transform: translateX(-14%) scale(1.02); filter: brightness(0.6); } }
.hero-photo img.first.on { animation: ph-zoom 6s cubic-bezier(0.2, 0.6, 0.3, 1) 0.2s both; clip-path: inset(0); }

/* Progress line: shows when the next picture comes */
.hph-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 4; background: rgba(255, 255, 255, 0.25); }
.hph-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hph-bar.run::after { animation: ph-bar var(--slide, 4200ms) linear forwards; }
@keyframes ph-bar { to { transform: scaleX(1); } }
.hph-pills { position: absolute; top: 16px; right: 16px; z-index: 3; display: flex; gap: 8px; }
.hph-pill {
  font-size: 0.8rem; font-weight: 700; padding: 8px 14px; border-radius: 30px; color: #111;
  background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hph-dark { background: rgba(10, 10, 10, 0.85); color: #fff; }
.hph-caption {
  position: absolute; left: 16px; bottom: 16px; z-index: 3; display: grid; padding: 12px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #111;
  transition: opacity 0.4s, transform 0.4s;
}
.hph-caption b { font-family: "Playfair Display", "Noto Serif JP", serif; font-size: 1.15rem; font-weight: 600; }
.hph-caption span { font-size: 0.8rem; color: #555; }
.hph-caption.swap { opacity: 0; transform: translateY(12px); }
/* Pills drop in, caption rises, after the picture opens */
.hph-pill { opacity: 0; animation: pill-in 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.hph-pill:nth-child(1) { animation-delay: 1.25s; }
.hph-pill:nth-child(2) { animation-delay: 1.4s; }
@keyframes pill-in { from { opacity: 0; transform: translateY(-14px) scale(0.92); } to { opacity: 1; transform: none; } }
.hph-caption { animation: cap-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s backwards; }
@keyframes cap-in { from { opacity: 0; transform: translateY(20px); } }

/* Headline: each word rises out of its line (masked) */
.hero-head h1 .m { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.14em; margin: -0.04em -0.02em -0.14em; }
.hero-head h1 .w {
  opacity: 1; filter: none; transform: translateY(115%) rotate(5deg); transform-origin: left bottom;
  animation: word-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 250ms);
}
@keyframes word-rise { to { transform: none; } }

/* Depth: the picture moves with scrolling */
.hero-photo { transform: translateY(var(--sy, 0px)); will-change: transform; }
.hero-head { transform: translateY(var(--ty, 0px)); opacity: var(--to, 1); }

/* "Featured samples": a line draws across, the heading rises */
.featured-head { position: relative; border-bottom: 0; }
.featured-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); transform: scaleX(var(--line, 1)); transform-origin: left; transition: transform 1.2s cubic-bezier(0.7, 0, 0.2, 1); }
.featured-head .m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.featured-head .w { display: inline-block; transform: translateY(110%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.featured-head > a { opacity: 0; transform: translateX(-10px); transition: opacity 0.6s 0.5s, transform 0.6s 0.5s; }
.featured-head.wait { --line: 0; }
.featured-head.in { --line: 1; }
.featured-head.in .w { transform: none; }
.featured-head.in > a { opacity: 1; transform: none; }
.featured-head > a span { display: inline-block; transition: transform 0.25s; }
.featured-head > a:hover span { transform: translateX(5px); }

.featured-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 70px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.featured-head h2 { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.featured-head a { font-weight: 700; color: var(--text); font-size: 0.92rem; white-space: nowrap; }
@media (max-width: 900px) {
  .hero-intro { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-photo { height: 460px; min-height: 0; }
  .featured-head { margin-top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo { animation: none; clip-path: none; transform: none; }
  .hero-photo img, .hero-photo img.on, .hero-photo img.was { animation: none; transform: none; clip-path: inset(0); }
  .hph-pill, .hph-caption { animation: none; opacity: 1; }
  .hph-bar { display: none; }
  .hero-head { transform: none; opacity: 1; }
  .hero-head h1 .w { animation: none; transform: none; }
  .hero .featured-head { animation: none; opacity: 1; transform: none; }
  .featured-head .w, .featured-head > a { transform: none; opacity: 1; transition: none; }
}
.hero-show { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; margin-top: 34px; }
.hero .stats { margin: 34px auto 0; max-width: 560px; }

.hero-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px 26px 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}
.hp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.hp-title { font-size: 1.45rem; line-height: 1.3; margin-bottom: 6px; }
.hp-name { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.hp-name::before { content: "· "; }
.hp-desc { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 14px; min-height: 3.1em; }
.hp-block { border-top: 1px solid var(--border); padding: 12px 0; }
.hp-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chips span { border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; background: var(--card); }
.hp-chips span { transition: background 0.35s, color 0.35s, border-color 0.35s; }
.hp-chips span.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.hp-price p { line-height: 1.5; }
.hp-price b { font-size: 1.6rem; font-weight: 900; margin-right: 6px; }
.hp-price p span { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.hp-price a { font-size: 0.85rem; font-weight: 700; color: var(--text); text-decoration: underline; white-space: nowrap; }

/* The 4 steps: all shown, the current one lights up */
.orbit-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; border-top: 1px solid var(--border); padding-top: 14px; margin-bottom: 14px; }
.orbit-steps li { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 0.72rem; font-weight: 700; line-height: 1.3; color: var(--muted); transition: color 0.4s; }
.orbit-steps li b {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; transition: all 0.4s;
}
.orbit-steps li.on { color: var(--text); }
.orbit-steps li.on b { background: var(--ink); border-color: var(--ink); color: var(--on-ink); transform: scale(1.12); }
.steps-all .orbit-steps li { color: var(--text); }

.hp-actions { margin-bottom: 12px; }
.hp-demo { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.hero-panel .hero-buttons .btn { flex: 1; text-align: center; padding-inline: 14px; }


@media (max-width: 900px) {
  .hero-show { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }
  .hero-show .hero-visual { order: 0; margin: 0; height: auto; }
}
@media (max-width: 720px) {
  .hero-head { text-align: left; }
  .hero-head .lead { margin-left: 0; }
  .hero-panel { padding: 20px 18px; border-radius: 18px; }
  .hp-title { font-size: 1.25rem; }
  .hp-name { display: block; }
  .hp-name::before { content: none; }
}

/* ===== Hero deck: sample sites fly in, land, show 3 designs, fly away (js/deck.js) ===== */
.hero-deck { display: grid; place-items: center; perspective: 1400px; }
.deck { position: relative; width: 100%; max-width: 600px; aspect-ratio: 16 / 11.5; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.deck:active { cursor: grabbing; }
.deck img, .deck-card { -webkit-user-drag: none; }
.deck img { pointer-events: none; }
/* Two cards "under" the current one, so it looks like a deck */
.deck::before, .deck::after {
  content: ""; position: absolute; inset: 6% 4% 4%; border-radius: 18px; background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.deck::before { transform: rotate(-4deg) translateY(10px); }
.deck::after { transform: rotate(3deg) translateY(6px); }
.deck-card {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden; background: var(--surface); color: #0a0a0a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.06);
  opacity: 0; visibility: hidden; transform-origin: 50% 100%;
}
.deck-card.is-current { visibility: visible; animation: deck-land 1.05s cubic-bezier(0.2, 0.8, 0.25, 1) forwards; z-index: 3; }
.deck-card.is-leaving { visibility: visible; animation: deck-fly 0.85s cubic-bezier(0.6, 0, 0.8, 0.4) forwards; z-index: 4; }
.deck-card.is-current.from-left { animation-name: deck-land-left; }
.deck-card.is-leaving.to-right { animation-name: deck-fly-right; }
@keyframes deck-land-left {
  0%   { opacity: 0; transform: translate3d(-45%, -70%, 0) rotate(-16deg) rotateX(25deg) scale(0.8); }
  55%  { opacity: 1; transform: translate3d(0, 3%, 0) rotate(2deg) scale(1.02); }
  75%  { transform: translate3d(0, -1%, 0) rotate(-0.8deg) scale(0.995); }
  100% { opacity: 1; transform: none; }
}
@keyframes deck-fly-right {
  to { opacity: 0; transform: translate3d(75%, -25%, 0) rotate(18deg) scale(0.85); }
}
@keyframes deck-land {
  0%   { opacity: 0; transform: translate3d(45%, -70%, 0) rotate(16deg) rotateX(25deg) scale(0.8); }
  55%  { opacity: 1; transform: translate3d(0, 3%, 0) rotate(-2deg) scale(1.02); }
  75%  { transform: translate3d(0, -1%, 0) rotate(0.8deg) scale(0.995); }
  100% { opacity: 1; transform: none; }
}
@keyframes deck-fly {
  to   { opacity: 0; transform: translate3d(-75%, -25%, 0) rotate(-18deg) scale(0.85); }
}
.deck-shot { position: relative; flex: 1; overflow: hidden; background: #f4f4f5; }
.deck-shot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transform: scale(1.04); transition: opacity 0.7s ease, transform 1.8s ease;
}
.deck-shot img.on { opacity: 1; transform: scale(1); }
.deck-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 0.9rem; border-top: 1px solid #eee; }
.deck-bar span { font-weight: 700; color: #52525b; }
.deck-card:hover .deck-bar span { color: #0a0a0a; }
/* Reduced motion: fade, no flying */
.deck.calm .deck-card.is-current { animation: none; opacity: 1; }
.deck.calm .deck-card.is-leaving { animation: none; opacity: 0; }
.deck.calm .deck-shot img { transition: opacity 0.4s; transform: none; }

/* Panel words rise in when a new site lands (js/deck.js wraps them) */
.hp-type .w, .hp-desc .w {
  display: inline-block; opacity: 0; transform: translateY(0.5em); filter: blur(4px);
  animation: word-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 350ms);
}
.hp-desc .w { animation-delay: calc(var(--i, 0) * 35ms + 650ms); }
.hp-chips span { animation: fade-up 0.5s ease backwards; }
.hp-chips span:nth-child(1) { animation-delay: 0.9s; } .hp-chips span:nth-child(2) { animation-delay: 1s; } .hp-chips span:nth-child(3) { animation-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .hp-type .w, .hp-desc .w, .hp-chips span { animation: none; opacity: 1; transform: none; filter: none; }
}
@media (max-width: 900px) { .deck { max-width: 520px; margin: 0 auto; } .hero-deck { min-height: 0; padding-top: 10px; } }

/* Deck controls: arrows, dots and a swipe hint (js/deck.js adds them) */
.hero-deck { display: flex; flex-direction: column; justify-content: center; gap: 14px; height: auto; min-height: 460px; }
.deck-nav { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; }
.deck-arrow {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.deck-arrow:hover { background: var(--ink); color: var(--on-ink); transform: scale(1.06); }
.deck-dots { display: flex; gap: 7px; }
.deck-dots button { width: 8px; height: 8px; border-radius: 6px; border: 0; padding: 0; background: #d4d4d8; cursor: pointer; transition: width 0.3s, background 0.3s; }
.deck-dots button[aria-current="true"] { width: 22px; background: var(--ink); }
.deck-arrow:focus-visible, .deck-dots button:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.deck-hint { display: none; position: absolute; top: -34px; left: 50%; transform: translateX(-50%); background: rgba(10, 10, 10, 0.85); color: #fff;
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; pointer-events: none; animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(calc(-50% + 8px)); } }
.deck-nav.used .deck-hint { opacity: 0; transition: opacity 0.4s; }
@media (pointer: coarse) { .deck-hint { display: block; } .deck-arrow { width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .deck-hint { animation: none; } }

/* Panel: try your shop name + "I like this one" */
.hp-try { border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 8px; }
.hp-try label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.hp-try-row { display: flex; gap: 6px; }
.hp-try input { flex: 1; min-width: 0; font: inherit; font-size: 0.95rem; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.hp-try input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08); }
.hp-try button { font: inherit; font-weight: 800; font-size: 0.9rem; border: 0; border-radius: 10px; padding: 9px 14px; background: var(--ink); color: var(--on-ink); cursor: pointer; white-space: nowrap; }
.hero-panel .hero-buttons { flex-direction: column; }
.hero-panel .hero-buttons .btn { width: 100%; }

/* ===== Price calculator ===== */
.calc { margin-top: 44px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); padding: 28px; box-shadow: var(--glow); }
.calc-head { text-align: center; margin-bottom: 20px; }
.calc-head h3 { font-size: 1.4rem; }
.calc-head p { color: var(--muted); }
.calc-form { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
.calc-opts { display: grid; gap: 8px; }
.calc-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.calc-opt > span:first-of-type { flex: 1; font-weight: 600; }
.calc-opt b { white-space: nowrap; }
.calc-opt input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; }
.calc-opt:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.calc-base { cursor: default; background: var(--surface); }
.calc-pages { cursor: default; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 1.1rem; cursor: pointer; color: var(--text); }
.stepper button:hover { background: var(--ink); color: var(--on-ink); }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.calc-total { position: sticky; top: 90px; display: grid; gap: 10px; text-align: center; background: var(--ink); color: var(--on-ink); border-radius: 18px; padding: 26px 20px; }
.calc-total > span { color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.calc-sum { font-size: 2.6rem; font-weight: 900; line-height: 1.1; }
.calc-note { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 760px) {
  .calc { padding: 20px 14px; }
  .calc-form { grid-template-columns: minmax(0, 1fr); }
  .calc-total { position: static; }
}

/* ===== Before / after slider ===== */
.ba { position: relative; max-width: 900px; margin: 30px auto 0; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06); user-select: none; background: #eee; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba:not(.touched) .ba-before, .ba:not(.touched) .ba-line { transition: clip-path 0.45s ease, left 0.45s ease; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--surface); box-shadow: 0 0 12px rgba(0,0,0,.35); pointer-events: none; }
.ba-line span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: #0a0a0a; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba-range:focus-visible + * , .ba:focus-within .ba-line span { outline: 3px solid #2563eb; outline-offset: 2px; }
.ba-tag { position: absolute; top: 14px; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; background: rgba(10,10,10,.85); color: #fff; pointer-events: none; }
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: var(--surface); color: #0a0a0a; }

/* LINE QR code in the contact section */
.line-qr { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); max-width: 420px; }
.qr-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.qr-row .line-qr { margin-top: 0; flex: 1 1 280px; }
.wa-qr img { width: 130px; height: 130px; }
.line-qr img { width: 110px; height: 110px; flex-shrink: 0; }
.line-qr b { display: block; line-height: 1.4; }
.line-qr span { color: var(--muted); font-size: 0.9rem; }
@media (pointer: coarse) and (max-width: 720px) { .qr-row { display: none; } } /* on phones the LINE link is easier */

/* Dark mode button */
.theme-toggle {
  border: 1px solid var(--border); background: transparent; color: var(--text); width: 38px; height: 38px;
  border-radius: 50%; cursor: pointer; font-size: 1rem; display: inline-grid; place-items: center; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--text); }

/* ===== Business-type pages (services/*.html) ===== */
.lp .nav-inner { justify-content: space-between; }
.lp-hero { padding-top: 70px; }
.lp-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.lp-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.lp-shots figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--border); }
.lp-shots img { width: 100%; height: auto; display: block; }
.lp-shots figcaption { padding: 10px 14px; font-weight: 700; }
.lp-two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.lp-feats { list-style: none; display: grid; gap: 10px; margin-top: 16px; }
.lp-feats li { padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); font-weight: 600; }
.lp-feats li::before { content: "✓ "; font-weight: 900; }
.lp-price { border: 1px solid var(--border); border-radius: 20px; padding: 24px; background: var(--surface); box-shadow: var(--glow); }
.lp-big { font-size: 2.6rem; font-weight: 900; line-height: 1.2; margin: 6px 0 12px; }
.lp-big small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.lp-price ul { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.lp-price li { padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.lp-cta { text-align: center; margin: 50px auto 0; max-width: 640px; }
.lp-cta .hero-buttons { justify-content: center; }
.lp-others { text-align: center; margin-top: 40px; }
.lp-others ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lp-others a, .footer-services a { color: var(--text); }
.lp-others a { display: inline-block; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; }
.footer-services { font-size: 0.85rem; }
@media (max-width: 760px) {
  .lp-shots, .lp-two { grid-template-columns: minmax(0, 1fr); }
}

/* Hero picture opens the sample it shows */
.hero-photo-wrap { position: relative; }
.hero-photo.clickable { cursor: pointer; }

/* ===== Page-wide animations ===== */
/* Cards fly up into place, one after another */
.rv { opacity: 0; transform: translateY(36px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.rv.rv-in { opacity: 1; transform: none; }

/* Steps: a line draws through the numbers, which pop in turn */
.steps { position: relative; }
.steps .step { position: relative; z-index: 1; }
.steps .step-num { transform: scale(0); transition: transform 0.6s cubic-bezier(0.3, 1.6, 0.4, 1); transition-delay: calc(var(--d, 0) * 380ms + 0.35s); }
.steps.drawn .step-num { transform: none; }

/* Numbers that count up get steady widths */
.count { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .steps .step-num { transform: none; transition: none; }
}
@media (min-width: 721px) {
  .price-card.featured.rv-in { transform: scale(1.03); }
}

/* ===== Floating pill navbar (premium look) ===== */
.nav { top: 12px; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 12px; margin-top: -12px; }
.nav-inner {
  height: 64px; padding: 0 10px 0 22px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--nav); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06); transition: box-shadow 0.3s, height 0.3s;
}
.nav.scrolled .nav-inner { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12); height: 58px; }
.logo { display: inline-flex; align-items: center; letter-spacing: -0.02em; }
.logo::before {
  content: "S"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-right: 9px;
  background: var(--ink); color: var(--on-ink); font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.05rem;
}
.nav-links { flex: 1; justify-content: center; gap: 6px; margin-left: 0; }
.nav-links a:not(.btn) { position: relative; padding: 8px 14px; border-radius: 12px; font-size: 0.95rem; transition: color 0.2s, background 0.2s; }
.nav-links a:not(.btn):hover { background: var(--chip); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--text);
  transform: scaleX(0); transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-links a.active:not(.btn) { color: var(--text); }
.nav-links a.active:not(.btn)::after { transform: scaleX(1); }
.nav-links .btn { margin-left: auto; border-radius: 14px; padding: 11px 20px; }
.lang-toggle, .theme-toggle { flex-shrink: 0; }
@media (max-width: 720px) {
  .nav { top: 8px; padding-top: 8px; margin-top: -8px; }
  .nav-inner { height: 58px; padding: 0 8px 0 14px; border-radius: 16px; }
  .nav-links {
    top: 66px; left: 0; right: 0; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14); padding: 14px; gap: 4px; align-items: stretch;
  }
  .nav-links a:not(.btn) { padding: 12px 14px; }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links a.active:not(.btn) { background: var(--chip); }
  .nav-links .btn { margin: 8px 0 0; text-align: center; }
  .logo::before { width: 28px; height: 28px; }
}

/* Logo (option 1): serif S mark + "Safal" bold + "Sites" serif italic */
.logo span { font-family: "Playfair Display", "Hiragino Mincho ProN", serif; font-style: italic; font-weight: 600; color: var(--text); margin-left: 1px; }
.logo::before { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 1.35rem; padding-bottom: 2px; box-sizing: border-box; }
.footer-brand { display: inline-flex; margin-bottom: 10px; font-size: 1.25rem; }
.footer .logo, .footer .logo span { color: #fff; }
.footer .logo::before { background: #fff; color: #0a0a0a; }

/* Hide the "Powered by Netlify" badge Netlify injects (hideable on the paid plan) */
#nl-badge-frame { display: none !important; }
