/* The phone showcase uses the site's type, palette and section rhythm. */
.phone-preview-section {
  --phone-ticket: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  padding: calc(var(--section-pad-y) * 1.5) max(var(--gutter), calc((100% - var(--max-width-full)) / 2 + var(--gutter)));
  background: var(--color-green-dark);
  color: var(--color-text-light);
}
.phone-preview-section [hidden] { display: none !important; }
.phone-preview-section button { font: inherit; cursor: pointer; }
.phone-preview-section button:disabled { cursor: default; opacity: .6; }
.phone-preview-section :is(button, select, input, [tabindex]):focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.phone-preview-section p, .phone-preview-section dd { text-wrap: balance; }
.phone-preview-tail { white-space: nowrap; }
.phone-preview-copy { min-width: 0; max-width: 600px; }
.phone-preview-heading { margin: 0 0 28px; font: 400 clamp(3.25rem, 6vw, 6rem)/1.02 var(--font-serif); letter-spacing: -.035em; }
.phone-preview-heading > span { display: block; }
.phone-preview-description { max-width: 42ch; color: var(--color-text-muted); font-size: 1.25rem; line-height: 1.6; }
.phone-preview-perks { margin-top: 36px; }
.phone-preview-perks > div { display: grid; grid-template-columns: minmax(10.5rem, .47fr) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--color-border-light); }
.phone-preview-perks > div:last-child { border: 0; }
.phone-preview-perks dt { font-weight: 500; white-space: nowrap; }
.phone-preview-perks dd { min-width: 0; color: var(--color-text-muted); font-size: .9375rem; line-height: 1.65; }
.phone-preview-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.phone-preview-tab { position: relative; isolation: isolate; min-height: 48px; padding: 12px 22px; border: 0; border-radius: 0; background: transparent; color: var(--color-text-light); font: .75rem/1.5 var(--font-mono) !important; letter-spacing: .04em; }
.phone-preview-tab::before, .phone-preview-tab::after { content: ""; position: absolute; z-index: -1; clip-path: var(--phone-ticket); transition: background var(--transition-default); }
.phone-preview-tab::before { inset: 0; background: var(--color-border); }
.phone-preview-tab::after { inset: 1px; background: var(--color-green-dark); }
.phone-preview-tab[aria-selected="true"] { color: var(--color-green-dark); }
.phone-preview-tab[aria-selected="true"]::after { background: var(--color-bg); }
.phone-preview-tab:hover:not(:disabled)::after { background: var(--color-green-muted); }
.phone-preview-tab[aria-selected="true"]:hover::after { background: var(--color-hero-bg); }
.phone-preview-disclaimer { margin-top: 18px; color: var(--color-border); font-size: .75rem; line-height: 1.7; max-width: 45ch; }
.phone-preview-stage { display: flex; justify-content: center; min-width: 0; }
.phone-preview-device { position: relative; width: min(100%, 368px); padding: 7px; background: #101715; border: 1px solid var(--color-green-muted); border-radius: 49px; box-shadow: 0 20px 44px rgba(0, 0, 0, .18); }
.phone-preview-device::before, .phone-preview-device::after { content: ""; position: absolute; width: 3px; background: var(--color-green-muted); border-radius: 2px; }
.phone-preview-device::before { left: -4px; top: 116px; height: 50px; }
.phone-preview-device::after { right: -4px; top: 175px; height: 62px; }
.phone-preview-screen { --phone-mint: #def0e4; --phone-composer: #f2f8f2; --phone-hairline: #e3eee8; --phone-send: #7b948e; position: relative; display: flex; flex-direction: column; min-height: 734px; padding-bottom: 9px; background: var(--color-bg); color: var(--color-green-dark); border-radius: 41px; overflow: hidden; font-size: .8125rem; }
.phone-preview-screen :is(button, select, input, [tabindex]):focus-visible { outline-color: var(--color-green-dark); }
.phone-preview-island { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: clamp(56px, 20%, 72px); height: 18px; background: #101715; border-radius: 20px; }
.phone-preview-status { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px 0; font: 500 .6875rem/1.5 var(--font-sans); }
.phone-preview-status-icons { display: flex; padding-right: 2px; }
.phone-preview-appbar { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px; }
.phone-preview-appbar button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-green-dark); }
.phone-preview-appbar button:hover { background: var(--phone-composer); }
.phone-preview-appbar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone-preview-room { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; font: 600 .875rem/1.5 var(--font-sans); white-space: nowrap; }
.phone-preview-room svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--color-green-muted); }
.phone-preview-appbar .phone-preview-sources-button { background: #fff; }
.phone-preview-orb { display: block; flex: 0 0 17px; width: 17px; height: 17px; border: 1px solid #c9dfd4; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #f3faf4 25%, var(--phone-mint) 60%, #c5ded1 100%); box-shadow: inset 0 0 0 1px #e1f0e7; }
.phone-preview-appbar > .phone-preview-orb { margin-right: 1px; }
.phone-preview-content { flex: 1; padding: 22px 14px 24px; min-width: 0; }
.phone-preview-panel { min-width: 0; border-radius: 22px; }
.phone-preview-chat { display: grid; gap: 20px; }
.phone-preview-turn { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.phone-preview-turn-user { justify-content: flex-end; padding-left: 54px; }
.phone-preview-bubble { padding: 13px 16px; font-size: .875rem; line-height: 1.75; text-wrap: pretty !important; overflow-wrap: normal; word-break: normal; }
.phone-preview-turn-user .phone-preview-bubble { border-radius: 22px 7px 22px 22px; background: var(--phone-mint); }
.phone-preview-turn-assistant .phone-preview-bubble { flex: 1; min-width: 0; border: 1px solid var(--phone-hairline); border-radius: 7px 22px 22px 22px; background: #fff; }
html[lang="ja"] .phone-preview-bubble { text-wrap: balance !important; line-break: strict; }
[data-enhanced="true"] .phone-preview-panel { animation: phone-preview-arrive 350ms ease both; }
.phone-preview-card { padding: 18px 16px; border: 1px solid var(--phone-hairline); border-radius: 22px; background: #fff; }
.phone-preview-card h4 { margin: 8px 0 0; font: 700 1.125rem/1.35 var(--font-sans); letter-spacing: -.02em; }
.phone-preview-small { display: block; font-size: .6875rem; line-height: 1.65; color: var(--color-green-muted); }
.phone-preview-card-copy { margin-top: 12px; font-size: .8125rem; line-height: 1.7; color: var(--color-green-muted); }
.phone-preview-rounded-action { width: 100%; margin-top: 20px; padding: 13px 12px; min-height: 46px; border: 0; border-radius: 12px; background: var(--color-green-dark); color: var(--color-text-light); font-size: .8125rem !important; font-weight: 500 !important; line-height: 1.5; text-wrap: balance; transition: background var(--transition-default); }
.phone-preview-rounded-action:hover:not(:disabled) { background: var(--color-green-muted); }
.phone-preview-rounded-action[aria-pressed="true"] { background: var(--color-green-muted); }
.phone-preview-note { margin-top: 16px; font-size: .75rem; line-height: 1.7; color: var(--color-green-muted); }
.phone-preview-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--color-border-light); }
.phone-preview-card-head h4 { margin: 0; min-width: 0; font-size: .875rem; }
.phone-preview-card-head > span { flex-shrink: 0; }
.phone-preview-source-list { margin-top: 14px; }
.phone-preview-source-list label { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--color-border-light); cursor: pointer; }
.phone-preview-source-list label > span { min-width: 0; }
.phone-preview-source-list strong { font-weight: 500; font-size: .875rem; }
.phone-preview-source-list input { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--color-green-dark); cursor: pointer; }
.phone-preview-count { margin-top: 14px; }
.phone-preview-plan { list-style: none; }
.phone-preview-plan li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--color-border-light); }
.phone-preview-plan li:last-child { border: 0; padding-bottom: 0; }
.phone-preview-plan h5 { font: 500 .875rem/1.5 var(--font-sans); }
.phone-preview-plan p { margin-top: 4px; font-size: .6875rem; line-height: 1.7; color: var(--color-green-muted); }
.phone-preview-plan time { padding-top: 2px; font: .625rem/1.6 var(--font-mono); color: var(--color-green-muted); }
.phone-preview-icon { display: grid; place-items: center; height: 30px; border-radius: 9px; background: var(--phone-mint); }
.phone-preview-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.phone-preview-feedback { min-height: 3.4em; padding-top: 14px; font-size: .6875rem; line-height: 1.7; color: var(--color-green-muted); }
.phone-preview-feedback:empty { min-height: 0; padding-top: 0; }
.phone-preview-composer { margin: 0 14px 14px; padding: 14px 12px 8px; border: 1px solid var(--phone-hairline); border-radius: 24px; background: var(--phone-composer); }
.phone-preview-composer > p { padding: 4px 3px; font-size: .8125rem; line-height: 1.6; color: var(--color-green-muted); text-wrap: balance; }
.phone-preview-composer-tools { display: flex; align-items: center; gap: 3px; margin-top: 14px; }
.phone-preview-add { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-left: -6px; border: 0; background: transparent; border-radius: 10px; color: var(--color-green-dark); }
.phone-preview-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.phone-preview-add:hover { background: var(--phone-mint); }
.phone-preview-connection { display: flex; align-items: center; flex: 1; min-width: 0; min-height: 44px; margin-right: auto; }
.phone-preview-composer select { width: auto; max-width: 100%; min-height: 44px; padding: 4px 20px 4px 2px; border: 0; border-radius: 8px; background: transparent; color: var(--color-green-muted); font: .6875rem/1.5 var(--font-sans); cursor: pointer; }
.phone-preview-microphone { display: grid; place-items: center; flex: 0 0 28px; height: 44px; }
.phone-preview-microphone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.phone-preview-send { position: relative; isolation: isolate; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--color-text-light); }
.phone-preview-send::before { content: ""; position: absolute; inset: 3px; z-index: -1; border-radius: 50%; background: var(--phone-send); transition: background var(--transition-default); }
.phone-preview-send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-preview-send:hover:not(:disabled)::before { background: var(--color-green-muted); }
.phone-preview-home { width: 104px; height: 4px; margin: 0 auto; background: var(--color-green-dark); border-radius: 3px; }
html[lang="ja"] .phone-preview-heading { font-size: clamp(2.75rem, 4.5vw, 4.5rem); line-height: 1.35; letter-spacing: -.025em; }
html[lang="ja"] .phone-preview-description { font-size: 1.125rem; line-height: 1.85; }
html[lang="ja"] .phone-preview-perks dt { font-size: .9375rem; }
@keyframes phone-preview-arrive { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .phone-preview-perks > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 960px) {
  .phone-preview-section { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .phone-preview-copy { max-width: 640px; margin-inline: auto; width: 100%; }
  .phone-preview-heading { font-size: clamp(3.25rem, 8vw, 5rem); }
  .phone-preview-perks > div { grid-template-columns: minmax(10.5rem, .42fr) minmax(0, 1fr); gap: 24px; }
  html[lang="ja"] .phone-preview-heading { font-size: clamp(2.75rem, 6vw, 4rem); }
}
@media (max-width: 600px) {
  .phone-preview-section { padding-block: var(--section-pad-y); gap: 40px; }
  .phone-preview-heading { margin: 0 0 24px; font-size: clamp(3rem, 12vw, 4rem); }
  .phone-preview-description { font-size: 1.0625rem; }
  .phone-preview-perks { margin-top: 24px; }
  .phone-preview-perks > div { grid-template-columns: 1fr; gap: 6px; }
  .phone-preview-perks dd { font-size: .875rem; }
  .phone-preview-tab { padding-inline: 16px; }
  .phone-preview-device { border-radius: 40px; padding: 6px; }
  .phone-preview-screen { border-radius: 33px; min-height: 680px; }
  .phone-preview-content { padding: 18px 12px 24px; }
  .phone-preview-card { padding: 16px 12px; }
  .phone-preview-composer { margin-inline: 12px; }
  html[lang="ja"] .phone-preview-heading { font-size: clamp(2rem, 9vw, 3rem); }
  html[lang="ja"] .phone-preview-description { font-size: 1rem; }
}
@media (max-width: 360px) {
  .phone-preview-content { padding-inline: 12px; }
  .phone-preview-turn-user { padding-left: 30px; }
  .phone-preview-bubble { padding: 12px; font-size: .8125rem; }
  .phone-preview-appbar { gap: 4px; padding-inline: 10px; }
  .phone-preview-plan li { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; }
  .phone-preview-icon { height: 26px; }
  .phone-preview-plan time { font-size: .5625rem; }
}
@media (prefers-reduced-motion: reduce) {
  .phone-preview-section *, .phone-preview-section *::before, .phone-preview-section *::after { animation: none !important; transition: none !important; }
}
