/* Shared editorial layouts for product, catalogue, and policy pages. */
.site-header { background: var(--paper); }
.site-header nav a[aria-current="page"] { box-shadow: 0 1px 0 currentColor; }
.site-footer { border-top: 1px solid var(--line); }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: 100%; }
.footer-products, .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.footer-products { font-size: .875rem; }
.footer-products a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-bottom { width: 100%; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-links { font-size: .875rem; }
.legacy-links { width: 100%; display: flex; flex-wrap: wrap; gap: .5rem 1rem; color: var(--muted); font-size: .75rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; color: var(--muted); font-size: .875rem; padding: 1.5rem var(--gutter); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.breadcrumb span[aria-current] { color: var(--ink); }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .1em; line-height: 1.6; }
.product-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding: 2.5rem var(--gutter) 4.5rem; }
.product-hero h1 { font-size: clamp(2.75rem, 5.2vw, 5.5rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.2; margin: 1.25rem 0; overflow-wrap: anywhere; }
.product-promise { font-size: clamp(1.25rem, 2.2vw, 1.8rem); line-height: 1.65; font-weight: 500; letter-spacing: -.04em; }
.product-intro { color: var(--muted); font-size: 1rem; max-width: 35rem; margin-top: 1rem; line-height: 1.9; }
.platforms { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.platforms span { font-size: .875rem; padding: .15rem .75rem; border: 1px solid var(--line); border-radius: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .85rem 1.2rem; min-height: 52px; border: 1px solid var(--ink); border-radius: 100px; background: var(--ink); color: var(--paper); font-size: .875rem; font-weight: 500; transition: background .2s, transform .2s; }
.button::after { content: '↗'; font-size: 1.35rem; line-height: 1; }
.button:hover { background: var(--acid); color: var(--ink); transform: translateY(-2px); }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { background: var(--acid); }
.product-art { position: relative; min-width: 0; min-height: 420px; height: 100%; display: grid; place-items: center; border-radius: 4px; overflow: hidden; }
.product-art img { width: clamp(140px, 17vw, 220px); height: auto; border-radius: 24%; transform: rotate(-8deg); filter: drop-shadow(0 24px 18px #20241f25); transition: transform .4s; }
.product-art:hover img { transform: rotate(0); }
.product-art .art-label { position: absolute; top: 1.5rem; left: 1.6rem; }
.art-footer { position: absolute; bottom: 1.5rem; left: 1.6rem; right: 1.6rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.art-footer span:last-child { font-size: 2.5rem; line-height: 1; font-weight: 500; letter-spacing: -.06em; opacity: .55; }
.product-art .shrine-type { font-size: 3.5rem; line-height: 1.3; }
.product-subnav { display: flex; flex-wrap: wrap; gap: .3rem 2.5rem; padding: 1rem var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .875rem; }
.product-subnav a { padding: .35rem 0; }
.product-subnav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.detail-section { padding: 4.5rem var(--gutter); scroll-margin-top: 1rem; }
.detail-section + .detail-section { border-top: 1px solid var(--line); }
.detail-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.75rem; }
.detail-heading h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.3; letter-spacing: -.055em; }
.detail-heading .eyebrow { color: var(--muted); padding-top: .6rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; counter-reset: feature; }
.feature { border-top: 1px solid var(--line); padding-top: 1.3rem; counter-increment: feature; }
.feature::before { content: counter(feature, decimal-leading-zero); display: block; color: var(--muted); font-size: .75rem; margin-bottom: 1.5rem; }
.feature h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.6; margin-bottom: .7rem; letter-spacing: -.025em; }
.feature p { color: var(--muted); font-size: 1rem; line-height: 1.95; }
.notice { padding: 1.5rem 1.75rem; margin-top: 2.5rem; border-left: 3px solid var(--ink); background: #ebede5; }
.notice h3 { font-size: 1rem; margin-bottom: .6rem; }
.notice p { font-size: 1rem; color: var(--muted); line-height: 1.95; }
.pricing-section { background: #edeee8; }
.pricing-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.price-card { grid-column: span 2; background: var(--paper); padding: 2rem; border: 1px solid var(--line); border-radius: 4px; }
.price-card:nth-child(-n+2) { grid-column: span 3; }
.price-card h3 { font-size: 1.1rem; font-weight: 500; }
.price { font-size: 2.6rem; font-weight: 600; line-height: 1.25; letter-spacing: -.055em; margin: 1.5rem 0 .3rem; }
.price small { font-size: .875rem; font-weight: 400; letter-spacing: 0; margin-left: .35rem; }
.price-caption { font-size: .875rem; color: var(--muted); padding-bottom: 1.25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.price-card p:last-child { color: var(--muted); font-size: 1rem; line-height: 1.95; }
.price-card.trial { grid-column: span 2; background: var(--acid); border-color: var(--acid); }
.price-card.trial .price-caption { border-color: #8da923; }
.price-card.trial .price-caption, .price-card.trial p:last-child { color: #3f4c18; }
.faq-list { max-width: 58rem; margin-left: auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary, .policy-group summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; font-size: 1rem; font-weight: 500; }
.faq-item summary::-webkit-details-marker, .policy-group summary::-webkit-details-marker { display: none; }
.faq-item summary::after, .policy-group summary::after { content: '+'; font-size: 1.5rem; flex: 0 0 1.5rem; text-align: center; }
.faq-item[open] summary::after, .policy-group[open] summary::after { content: '−'; }
summary:focus-visible { outline: 2px solid #5b7400; outline-offset: 4px; }
.faq-item p { padding: 0 2rem 1.5rem 0; color: var(--muted); font-size: 1rem; line-height: 1.95; }
.login-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.login-card { padding: 2rem; background: var(--dark); color: var(--paper); border-radius: 4px; }
.login-card h3 { font-size: 1.3rem; font-weight: 500; }
.login-card p { color: #c2c7b9; margin: .75rem 0 1rem; font-size: 1rem; }
.login-card .button { color: var(--ink); background: var(--acid); border-color: var(--acid); }
.login-card .button:hover { background: var(--paper); border-color: var(--paper); }
.spec-list { max-width: 58rem; margin: 0 0 0 auto; }
.spec-list > div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.spec-list > div:first-child { border-top: 1px solid var(--line); }
.spec-list dt { color: var(--muted); font-size: .875rem; }
.spec-list dd { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
.spec-list a, .legal a { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: #9ca28f; }
.spec-list a:hover, .legal a:hover { text-decoration-color: var(--ink); }
.flow-list { list-style: none; padding: 0; margin: 0 0 0 auto; max-width: 58rem; counter-reset: step; }
.flow-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; align-items: baseline; counter-increment: step; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.95; }
.flow-list li::before { content: counter(step, decimal-leading-zero); font-size: 1.5rem; letter-spacing: -.05em; color: var(--muted); }
.next-product { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem var(--gutter); background: var(--acid); }
.next-product h2 { font-size: clamp(1.6rem, 3vw, 2.7rem); font-weight: 600; letter-spacing: -.05em; margin-top: .6rem; }
.next-product > span { font-size: 3rem; transition: transform .2s; }
.next-product:hover > span { transform: translate(5px, -5px); }
.catalogue-hero { padding: 2rem var(--gutter) 3.5rem; }
.catalogue-hero h1 { font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 600; line-height: 1.15; letter-spacing: -.07em; margin: 1.5rem 0; }
.catalogue-hero h1 span { color: #72873d; }
.catalogue-hero p { color: var(--muted); font-size: 1rem; }
.catalogue-products { padding-top: 3.5rem; }
.legal-hero { padding: 2rem var(--gutter) 3rem; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 4.25rem); font-weight: 600; line-height: 1.4; letter-spacing: -.055em; margin: 1.25rem 0 .75rem; overflow-wrap: anywhere; }
.legal-hero > p:last-child { font-size: .875rem; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: minmax(12rem, .65fr) minmax(0, 2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding: 3.5rem var(--gutter) 5rem; }
.legal-sidebar { position: sticky; top: 2rem; }
.legal-sidebar > .eyebrow { color: var(--muted); margin-bottom: 1rem; }
.legal-toc { display: grid; gap: .25rem; font-size: .875rem; }
.legal-toc a { display: block; border-left: 2px solid var(--line); padding: .4rem 0 .4rem 1rem; }
.legal-toc a:hover { border-color: var(--ink); background: #ebede5; }
.legal-toc a[aria-current="page"] { border-color: var(--ink); font-weight: 600; }
.legal-related { display: grid; gap: .65rem; border-top: 1px solid var(--line); margin-top: 1.75rem; padding-top: 1.5rem; font-size: .875rem; color: var(--muted); }
.legal { min-width: 0; }
.legal p, .legal li, .legal dd { font-size: 1rem; color: var(--muted); line-height: 2; overflow-wrap: anywhere; }
.legal p { margin: 0 0 1.2rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.6; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.legal ul { padding-left: 1.3rem; margin: 1rem 0 1.5rem; }
.legal .policy-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.75rem 0 2.5rem; }
.policy-nav a { display: flex; gap: .6rem; align-items: center; padding: 1rem .85rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-size: .875rem; }
.policy-nav a:hover { background: var(--acid); border-color: var(--acid); }
.policy-nav small { display: block; font-size: .75rem; margin-top: .35rem; line-height: 1.6; color: var(--muted); }
.policy-nav-icon { display: grid; place-items: center; width: 28px; flex-shrink: 0; font-size: 1.1rem; }
.policy-service { margin-top: 3rem; scroll-margin-top: 1.5rem; }
.policy-service-header { display: flex; gap: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.policy-service-header h3 { border: 0; padding: 0; margin: 0 0 .75rem; font-size: 1.7rem; letter-spacing: -.04em; }
.policy-badge { flex: 0 0 auto; height: fit-content; background: var(--ink); color: var(--acid); padding: .2rem .65rem; border-radius: 20px; font-size: .75rem; }
.legal .policy-note { background: #edf1df; border-left: 3px solid #83984e; padding: 1rem 1.25rem; margin: 1rem 0; }
.policy-group { border-bottom: 1px solid var(--line); }
.policy-group summary { padding: 1rem 0; }
.policy-content { padding: 0 .25rem .5rem; }
.policy-meta { margin-top: 3rem; }
.legal dl { display: grid; grid-template-columns: minmax(8rem, .6fr) minmax(0, 1.4fr); margin: 0; }
.legal dt, .legal dd { padding: 1.25rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.legal dt { padding-right: 1.5rem; font-size: .875rem; font-weight: 500; }
.legal dt:first-child, .legal dt:first-child + dd { border-top: 1px solid var(--line); }
.hero-description p, .product-info p, .section-heading p, .contact > p { font-size: 1rem; }
.hero h1 { white-space: normal; overflow-wrap: anywhere; }
.section-label, .hero-meta { line-height: 1.7; }
.section-label > span:last-child { font-size: .875rem; letter-spacing: 0; }
.product-visual, .product-art { border-radius: 6px; }
.catalogue-link { margin-top: 2.5rem; display: flex; justify-content: flex-end; }
@media (max-width: 1050px) {
  .product-hero { grid-template-columns: 1.15fr 1fr; gap: 2rem; }
  .product-art { min-height: 370px; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-card, .price-card:nth-child(-n+2) { grid-column: auto; }
  .price-card.trial { grid-column: 1 / -1; }
  .legal-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 2rem; }
  .legal .policy-nav { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 1.25rem; }
  .site-header nav { width: 100%; justify-content: space-between; gap: .6rem; }
  .product-hero { grid-template-columns: 1fr; padding-top: 1rem; padding-bottom: 2.5rem; }
  .product-hero h1 { font-size: clamp(2.75rem, 9vw, 4.5rem); }
  .product-art { min-height: 330px; }
  .product-art img { width: 165px; }
  .product-subnav { gap: .25rem 1.5rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .detail-section { padding-top: 3rem; padding-bottom: 3rem; }
  .detail-heading { margin-bottom: 2rem; }
  .legal-layout { grid-template-columns: 1fr; padding-top: 2rem; }
  .legal-sidebar { position: static; }
  .legal-toc { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
  .legal-toc a { padding: .35rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .legal-related { display: flex; flex-wrap: wrap; gap: 1rem; }
  .legal .policy-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-main { flex-direction: column; align-items: start; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .feature-grid, .pricing-grid, .login-grid { grid-template-columns: 1fr; }
  .price-card.trial { grid-column: auto; }
  .price-card, .login-card { padding: 1.5rem; }
  .feature::before { margin-bottom: .8rem; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .spec-list > div { grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1rem; }
  .detail-heading { flex-direction: column; gap: .6rem; }
  .detail-heading .eyebrow { padding: 0; }
  .product-subnav { font-size: .875rem; }
  .flow-list li { grid-template-columns: 2rem 1fr; gap: 1rem; }
  .legal .policy-nav { grid-template-columns: 1fr; }
  .legal dt { padding: 1.1rem 0 .25rem; }
  .legal dd { padding: 0 0 1.1rem; }
  .legal dl { display: block; }
  .legal dt, .legal dt:first-child + dd { border: 0; }
  .legal dt:first-child { border-top: 1px solid var(--line); }
  .legal h3 { font-size: 1.125rem; }
  .legal-hero { padding-top: 1.25rem; padding-bottom: 2rem; }
  .product-art .shrine-type { font-size: 3rem; }
  .footer-products { gap: .5rem 1.25rem; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 1rem; }
  .notice { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .button, .product-art img, .next-product > span { transition: none; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .site-footer, .breadcrumb, .legal-sidebar, .policy-nav { display: none !important; }
  .legal-hero, .legal-layout { display: block; padding: 1rem 0; }
  .legal p, .legal li, .legal dd { color: black; }
}

/* Platform-specific plan groups on the Kintaisan product page. */
.plan-group { scroll-margin-top: 2rem; }
.plan-group + .plan-group { margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.plan-group-title { font-size: 1.5rem; font-weight: 600; margin-bottom: .75rem; }
.plan-group-intro { color: var(--muted); line-height: 1.95; margin-bottom: 1.5rem; }
.plan-note { margin-top: 1.25rem; margin-bottom: 0; font-size: .875rem; }
.price-card h4 { font-size: 1.1rem; font-weight: 500; }
.android-pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.android-pricing-grid .price-card { grid-column: auto; }
@media (max-width: 700px) {
  .android-pricing-grid { grid-template-columns: 1fr; }
}

/* Real Android screen examples; reserved image space prevents layout shifts. */
.app-screen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.app-screen { margin: 0; min-width: 0; }
.app-screen > a { display: block; max-width: 360px; margin-inline: auto; }
.app-screen img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.app-screen figcaption { margin-top: 1.25rem; }
.app-screen h3 { font-size: 1.125rem; line-height: 1.6; margin-bottom: .6rem; }
.app-screen p { color: var(--muted); line-height: 1.95; font-size: 1rem; }
@media (max-width: 700px) { .app-screen-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
