/* Four app features, read left-to-right in two compact rows. */
.feature-layout > h2 { margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.feature-layout .feature-grid > article { display: flex; flex-direction: column; gap: 24px; min-width: 0; margin: 0; padding: 32px; border: 1px solid #eadfce; border-radius: 28px; background: #fffdf9; overflow: hidden; }
.feature-layout .feature-copy { max-width: none; }
.feature-layout .feature-copy h3 { font-size: clamp(30px,3vw,42px); line-height: 1.1; margin: 20px 0; }
.feature-layout .feature-copy > p:not(.feature-name):not(.feature-exclusive),.practice-description { font-size: 16px; line-height: 1.65; }
.feature-layout .feature-name { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 18px; font-weight: 900; }
.feature-name > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f5e8d8; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.feature-layout .talk-preview { min-height: 320px; height: 320px; margin: auto 0 0; padding: 20px; border-radius: 20px; overflow: hidden; }
.feature-layout .talk-preview .phone-frame { width: 154px; flex-shrink: 0; border-width: 4px; border-radius: 25px; margin-top: 36px; }
.feature-layout .live-demo-bubbles p { font-size: 15px; padding: 10px 13px; min-height: 0; }
.feature-layout .practice-heading { display: block; margin: 0; }
.practice-description p + p { margin-top: 15px; }
.feature-layout .practice-route { display: flex; align-items: center; gap: 14px; padding: 20px 16px; margin-top: auto; min-height: 320px; border-radius: 20px; background: #f4eadb; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; }
.feature-layout .practice-route > figure { flex: 0 0 calc((100% - 14px)/2); scroll-snap-align: start; }
.feature-layout .practice-route .phone-frame { width: 100%; border-width: 3px; border-radius: 17px; box-shadow: 3px 5px 0 #122d5012; }
.feature-layout .practice-route figcaption { font-size: 12px; line-height: 1.4; margin-top: 14px; }
.feature-layout .feature-grid > .feature-kansai-preview { background: #ffe7b8; position: relative; gap: 16px; scroll-margin-top: 80px; }
.feature-kansai-labels { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.feature-kansai-labels .feature-name > span { background: #fff8ee; }
.coming-soon { padding: 6px 12px; border-radius: 100px; background: transparent; border: 1px solid #806339; color: #60471e; font-size: 12px; font-weight: 800; white-space: nowrap; }
.feature-layout .feature-exclusive { display: inline-block; font-size: 15px; line-height: 1.4; font-weight: 900; margin: 0 0 20px; padding: 9px 15px; border-radius: 8px; background: #bd351f; color: white; }
.feature-layout .feature-kansai-preview h3 { font-size: clamp(28px,2.5vw,36px); }
.feature-phrase-pair { display: grid; gap: 12px; background: #fffaf2; padding: 18px; border-radius: 16px; margin-top: 24px; position: relative; z-index: 1; }
.feature-phrase-pair > div { display: flex; gap: 6px 12px; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.feature-phrase-pair > div > span { font-size: 11px; color: var(--muted); }
.feature-layout .feature-phrase-pair > div > p { font-size: 20px; font-weight: 800; line-height: 1.4; margin: 0; }
.feature-phrase-pair > div:nth-child(2) > p { color: #b43d22; }
.feature-layout .feature-phrase-pair .phrase-translation { font-size: 13px; color: var(--muted); border-top: 1px solid #e5dcca; padding-top: 10px; margin: 0; }
.feature-layout .kansai-tako { width: 230px; height: 190px; align-self: center; margin-top: auto; }
.feature-layout .kansai-tako > img { width: 190px; height: 190px; }
.feature-layout .kansai-aside { font-size: 27px; bottom: 18px; right: -12px; }
.lesson-peek { font-size: 12px; border-top: 1px solid #c5964b55; padding-top: 12px; }
.lesson-peek summary { cursor: pointer; font-weight: 800; }
.lesson-peek > img { width: 200px; height: auto; margin: 20px auto 0; border-radius: 24px; border: 4px solid var(--ink); }
.feature-stamps-summary .text-link { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 800; }
.stamp-detail-preview { margin: auto 0 0; padding: 24px 24px 0; height: 440px; border-radius: 20px; background: #f4eadb; overflow: hidden; }
.stamp-detail-preview img { width: 240px; height: auto; margin: 0 auto; border: 4px solid var(--ink); border-radius: 26px; transform: rotate(3deg); }
.feature-closing-note { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 44px auto 0; max-width: 970px; }
.feature-closing-note > img { width: 100px; height: auto; flex-shrink: 0; }
.feature-closing-note blockquote { position: relative; margin: 0; background: white; border: 2px solid var(--ink); border-radius: 24px; padding: 24px 28px; font-size: clamp(20px,2.2vw,27px); font-weight: 900; line-height: 1.4; letter-spacing: -.02em; }
.feature-closing-note blockquote::before { content: ''; position: absolute; left: -10px; top: calc(50% - 9px); width: 16px; height: 16px; background: white; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.matrix-coming-soon { display: inline-block; font-size: 12px; font-weight: 800; line-height: 1.4; }
/* Keep one download link, below the character on phones and below copy on desktop. */
@media (min-width: 761px) {
  .hero-backdrop .hero { grid-template-rows: auto auto; align-content: center; column-gap: 50px; row-gap: 0; }
  .hero .hero-copy { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 0; }
  .hero .hero-stage { grid-column: 2; grid-row: 1 / 3; }
  .hero .hero-download { grid-column: 1; grid-row: 2; align-self: start; }
}
@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .feature-layout > h2 { margin-bottom: 28px; }
  .feature-layout .feature-grid > article { padding: 24px; border-radius: 24px; }
  .feature-layout .feature-copy h3 { font-size: 32px; }
  .feature-layout .practice-route > figure { flex-basis: calc((100% - 14px)/2); }
  .feature-layout .practice-route { min-height: 290px; }
  .feature-layout .practice-route .phone-frame { max-width: 150px; }
  .feature-closing-note { flex-direction: column-reverse; gap: 16px; }
  .feature-closing-note blockquote { padding: 20px; font-size: 21px; }
  .feature-closing-note blockquote::before { left: calc(50% - 9px); top: auto; bottom: -10px; transform: rotate(-45deg); }
  .hero-backdrop .hero { display: flex; flex-direction: column; gap: 0; justify-content: space-between; min-height: calc(100svh - 56px); padding-top: clamp(24px, 7svh, 64px); padding-bottom: 32px; }
  .hero .hero-copy { width: 100%; padding: 0; flex-shrink: 0; }
  .hero .hero-copy h1 { font-size: clamp(28px,8.5vw,40px); margin: 0 0 18px; line-height: 1.08; }
  .hero h1 br:nth-of-type(2) { display: none; }
  .hero h1 em::before { content: ' '; white-space: pre; }
  .hero .hero-intro { font-size: 14px; line-height: 1.6; margin: 0; max-width: none; }
  .hero-backdrop .hero-stage { width: 100%; flex: 1 0 312px; min-height: 312px; max-height: 400px; height: auto; margin: 10px 0 0; }
  .hero-stage .hero-app-review { display: none; }
  .hero-stage .hero-app-talk { width: 105px; left: 14px; top: calc(50% - 94px); border-width: 3px; border-radius: 19px; transform: rotate(-8deg); }
  .hero-stage .tako-button { width: 210px; height: 210px; right: -4px; top: calc(50% - 108px); }
  .hero-stage .learner { left: 2px; top: 8px; padding: 8px 11px; border-radius: 14px; transform: rotate(-3deg); }
  .hero-stage .learner p { font-size: 12px; }
  .hero-stage .learner small { font-size: 10px; }
  .hero-stage .hero-voice { display: none; }
  .hero-stage .learner::after { width: 12px; height: 12px; bottom: -8px; left: 38px; }
  .hero-stage .tako-reply { right: 0; bottom: 2px; padding: 9px 12px; max-width: 90%; border-radius: 14px; }
  .hero-stage .tako-reply p { font-size: 13px; }
  .hero-stage .tako-reply small { font-size: 10px; }
  .hero-stage .reply-mouth-tail { left: 65%; top: -16px; transform: rotate(50deg); }
  .hero .hero-download { width: 160px; margin: 24px auto 0; flex-shrink: 0; }
  html[lang=ja] .hero .hero-copy h1 { font-size: 28px; line-height: 1.2; }
  html[lang=ja] .hero .hero-intro { font-size: 13px; }
}
/* Stretch media to the card edges; keep the two rows visually balanced. */
.feature-layout .feature-grid > article { align-items: stretch; }
.feature-layout .feature-copy { width: 100%; }
.feature-layout .practice-heading .feature-copy { margin: 0; }
.feature-layout .practice-route .phone-frame { max-width: 150px; }
.kansai-conversation { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.kansai-conversation .feature-phrase-pair { flex: 1; min-width: 0; margin-top: 0; }
.feature-layout .kansai-conversation .kansai-tako { width: 150px; height: 175px; flex-shrink: 0; margin: 0; }
.feature-layout .kansai-conversation .kansai-tako img { width: 150px; height: 150px; }
.feature-layout .kansai-conversation .kansai-aside { font-size: 22px; right: 0; bottom: 0; }
.feature-layout .feature-phrase-pair > div { display: block; }
.feature-layout .feature-phrase-pair > div > p { font-size: 18px; }
.stamp-detail-preview { height: 320px; }
@media (max-width: 1100px) and (min-width: 761px), (max-width: 400px) {
  .kansai-conversation { flex-direction: column; }
  .kansai-conversation .feature-phrase-pair { width: 100%; }
}

/* Preserve the compact fit on shorter phones while taller screens gain space. */
@media (max-width: 760px) and (max-height: 700px) {
  .hero-backdrop .hero { padding-top: 24px; padding-bottom: 24px; }
  .hero .hero-download { margin-top: 18px; }
}

@media (max-width: 760px) and (min-height: 740px) {
  .hero-stage .tako-button { width: 240px; height: 240px; top: calc(50% - 120px); }
  .hero-stage .hero-app-talk { width: 120px; top: calc(50% - 108px); }
}
