/* Smartphone layout. Desktop styles remain in styles.css. */
:root { --container: calc(100% - 40px); --radius-lg: 22px; --section-space: 32px; }
html { scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { background: linear-gradient(180deg, #f5f8f4, #f7f8f5 720px); }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.ambient, .glass-orbit, .hero-visual::before, .dashboard-card::after { display: none; }
.site-header, .site-header.scrolled {
  padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px;
  background: rgba(247, 248, 245, 0.95);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-header .header-inner { min-height: 44px; gap: 6px; flex-wrap: wrap; }
.site-header .brand { width: 118px; min-height: 44px; display: flex; align-items: center; }
.header-auth { gap: 8px; width: 100%; }
.header-auth .header-cta { flex: 1; }
.header-auth .header-cta { min-height: 44px; padding: 0 12px; font-size: 0.78rem; }
.header-auth .header-cta:only-child { max-width: 190px; white-space: normal; text-align: center; }
.section { padding-block: var(--section-space); }
.hero { padding-top: calc(148px + env(safe-area-inset-top, 0px)); padding-bottom: var(--section-space); }
.hero-grid { min-height: auto; gap: 32px; }
.hero-copy { min-width: 0; }
.eyebrow, .process-intro .eyebrow { margin-bottom: 18px; font-size: 0.66rem; letter-spacing: 0.09em; gap: 8px; }
.eyebrow > span { width: 20px; flex-shrink: 0; }
.hero h1 { font-size: clamp(2.6rem, 11.7vw, 3.5rem); line-height: 1.04; letter-spacing: -0.055em; }
.hero-lead { margin-top: 22px; font-size: 1rem; line-height: 1.65; }
.hero-actions, .final-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.button, .button-plan { width: 100%; min-height: 50px; padding: 12px 18px; font-size: 0.94rem; text-align: center; }
.button:hover, .button:focus-visible, .header-cta:hover, .header-cta:focus-visible { transform: none; }
.trust-list { display: grid; gap: 9px; margin-top: 22px; font-size: 0.85rem; }
.trust-list li { align-items: flex-start; line-height: 1.5; }
.trust-list .check { flex: 0 0 19px; margin-top: 1px; }
.hero-visual { width: 100%; }
.glass-card, .product-window, .principles-bar, .envelope { backdrop-filter: none; -webkit-backdrop-filter: none; }
.dashboard-card { padding: 18px; transform: none; box-shadow: 0 12px 32px rgba(26, 52, 41, 0.07); }
.dashboard-topline { gap: 10px; }
.dashboard-topline h2 { font-size: 1.12rem; }
.progress-card { margin-top: 18px; padding: 16px; }
.progress-copy { gap: 12px; flex-wrap: wrap; }
.progress-card p, .dashboard-footer small { font-size: 0.79rem; line-height: 1.5; color: var(--ink-soft); }
.dashboard-item { min-height: 64px; gap: 10px; padding: 10px; }
.dashboard-item strong { font-size: 0.86rem; }
.dashboard-item small { font-size: 0.75rem; white-space: normal; }
.dashboard-footer { gap: 10px; align-items: center; margin-top: 16px; }
.principles-bar { display: grid; gap: 10px; margin-top: 24px; padding: 16px; border-radius: 16px; box-shadow: none; }
.principles-bar p { font-size: 0.82rem; text-align: left; }
.principles-bar > span { display: none; }
.section-heading, .process-intro { display: block; margin-bottom: 24px; }
.section-heading .eyebrow, .section-heading.centered .eyebrow, .faq .section-heading .eyebrow { margin-bottom: 16px; justify-content: flex-start; }
.section-heading h2, .process-intro h2, .faq .section-heading h2, .final-card h2 { font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1.13; letter-spacing: -0.045em; }
.section-heading > p, .section-heading.centered > p, .faq .section-heading > p, .process-intro > p { margin: 16px 0 0; font-size: 1rem; line-height: 1.65; }
.section-heading.centered { text-align: left; }
.step-card { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: 20px; }
.step-illustration { height: 112px; }
.step-icon { width: 108px; margin-left: 0; }
.step-copy { display: contents; }
.step-heading { grid-column: 2; grid-row: 1; align-self: center; gap: 8px; }
.step-number { flex-basis: 16px; font-size: 0.7rem; }
.step-card h3 { font-size: 1.05rem; line-height: 1.4; }
.step-card p { grid-column: 1 / -1; padding: 0; margin: 0; max-width: none; font-size: 0.96rem; line-height: 1.65; }
.pricing-note { font-size: 0.82rem; line-height: 1.6; text-align: left; margin-top: 20px; }
.spaces-grid { gap: 16px; }
.space-card { min-height: 0; padding: 18px; box-shadow: 0 10px 28px rgba(26, 39, 31, 0.06); }
.space-card-head { align-items: flex-start; gap: 10px; }
.space-kicker { font-size: 0.78rem; }
.visibility-chip { white-space: normal; font-size: 0.72rem; }
.memorial-preview { min-height: 0; grid-template-columns: 98px minmax(0, 1fr); gap: 18px; padding: 28px 0; }
.memorial-portrait { border-width: 4px; border-bottom-width: 0; }
.memorial-copy h3 { font-size: 1.7rem; line-height: 1.1; }
.memorial-copy p { margin-bottom: 14px; font-size: 0.76rem; }
.space-card-foot { gap: 6px; margin-top: 0; }
.space-card-foot span { font-size: 0.72rem; }
.envelopes { display: grid; gap: 10px; min-height: 0; padding: 24px 0; }
.envelope, .envelope-back, .envelope-middle, .envelope-front { position: static; width: 100%; min-height: 72px; padding: 12px; gap: 12px; transform: none; opacity: 1; box-shadow: none; border-radius: 14px; }
.envelope-icon { width: 36px; height: 36px; }
.envelope small { font-size: 0.76rem; }
.envelope strong { font-size: 0.88rem; }
.product-window { margin-inline: 0; box-shadow: 0 12px 32px rgba(29, 46, 36, 0.06); }
.window-bar { min-height: 44px; padding-inline: 14px; }
.product-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: visible; padding: 8px; }
.product-tabs button { min-width: 0; min-height: 54px; padding: 8px 4px; text-align: center; border-radius: 12px; }
.product-tabs button > span:last-child { font-size: 0.82rem; }
.product-tabs small, .tab-label-desktop { display: none; }
.tab-label-mobile { display: inline; }
.product-content { padding: 20px 16px; }
.panel-title { gap: 10px; }
.panel-title h3 { font-size: 1.28rem; line-height: 1.25; }
.memory-editor { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; margin-top: 22px; }
.memory-avatar { align-self: start; border-width: 1px; border-radius: 12px; }
.memory-upload { gap: 4px; padding: 6px; font-size: 0.7rem; }
.memory-upload svg { width: 22px; height: 22px; }
.upload-label-desktop { display: none; }
.upload-label-mobile { display: inline; }
.field-label { font-size: 0.76rem; }
.fake-input, .fake-textarea { padding: 9px; font-size: 0.83rem; }
.panel-note { margin-top: 18px; padding: 12px; font-size: 0.82rem; }
.people-list, .compartments { margin-top: 22px; }
.person-row, .compartment { gap: 10px; padding: 12px; }
.person-row strong, .compartment strong { font-size: 0.88rem; }
.person-row small, .compartment small { font-size: 0.75rem; }
.pricing-grid { gap: 16px; }
.price-card { padding: 22px; min-height: 0; border-radius: 20px; box-shadow: none; }
.price-card.featured { order: 0; transform: none; }
.recommended { position: static; align-self: flex-start; margin-bottom: 14px; }
.plan-name span { font-size: 1.15rem; }
.plan-name small { font-size: 0.84rem; }
.price { margin: 24px 0 20px; }
.price strong { font-size: 2.6rem; }
.price span { min-height: 0; font-size: 0.8rem; }
.price-card ul { gap: 10px; margin-bottom: 24px; }
.price-card li { font-size: 0.93rem; line-height: 1.5; }
.faq-grid { gap: 26px; }
.accordion summary { min-height: 60px; padding: 20px 32px 20px 0; font-size: 1rem; line-height: 1.5; }
.accordion details > p { font-size: 0.96rem; line-height: 1.65; }
.final-card { padding: 24px; }
.final-mark { width: 48px; height: 48px; margin-bottom: 18px; }
.final-card p { font-size: 1rem; line-height: 1.65; }
.footer-top { gap: 30px; }
.footer-brand { max-width: 150px; }
.footer-brand p { font-size: 0.88rem; }
.footer-links { gap: 24px 20px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 0.88rem; }
.footer-bottom { gap: 10px; font-size: 0.8rem; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.site-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.reveal { opacity: 1; transform: none; transition: none; }
.progress-track span { animation: none; }
@media (max-width: 360px) {
  :root { --container: calc(100% - 32px); }
  .site-header .brand { width: 98px; }
  .site-header .header-inner { gap: 8px; }
  .header-auth { gap: 6px; }
  .header-auth .header-cta { padding-inline: 8px; font-size: 0.75rem; }
}
