/* Ship scrolls page: the designer is the opener, then how it works, examples, shipbuilders, questions. */

.tool { position: relative; padding: calc(var(--head-h) + 28px) 0 56px; background: var(--ink); overflow: clip; }
.tool::before { content: ''; position: absolute; inset: 0; background: url('../img/loft-floor.jpg') center / cover; opacity: .5; }
.tool::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 75% 50%, rgba(255,244,200,.07), transparent 65%); pointer-events: none; }
.tool > .container { position: relative; z-index: 1; }
.tool__head { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: baseline; gap: 10px 36px; margin-bottom: 22px; }
@media (max-width: 980px) { .tool__head { grid-template-columns: 1fr; } }
.tool__head .h1 { font-size: clamp(2.3rem, 3.8vw, 3.8rem); }
.tool__head .lede { color: #C9D5DB; }
.tool__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(26px, 4vw, 64px); align-items: start; }

.tool__form { background: rgba(13,24,33,.82); border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(18px, 2vw, 28px); backdrop-filter: blur(4px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.steps button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: transparent; border: 0; border-bottom: 2px solid rgba(233,238,240,.18); color: var(--on-dark-2); font: 500 .95rem/1.2 var(--f-body); text-align: left; cursor: pointer; transition: color .3s, border-color .3s; }
.steps button b { font-family: var(--f-stencil); font-size: 1.3rem; color: inherit; }
.steps button[aria-selected="true"] { color: var(--on-dark); border-color: var(--yellow); }
.steps button[aria-selected="true"] b { color: var(--yellow); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .98rem; color: var(--on-dark); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid rgba(233,238,240,.22); background: rgba(233,238,240,.05); color: var(--on-dark); font: 400 1rem/1.4 var(--f-body); transition: border-color .25s, background-color .25s; }
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169,185,194,.7); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); background: rgba(233,238,240,.08); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .92rem; color: var(--on-dark-2); margin: 2px 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; flex-direction: column; justify-content: center; min-height: 54px; padding: 10px 14px; border-radius: var(--r); border: 1.5px solid rgba(233,238,240,.22); color: var(--on-dark-2); font-weight: 600; font-size: .98rem; line-height: 1.3; transition: border-color .25s, color .25s, background-color .25s; }
.seg span i { font-style: normal; font-family: var(--f-stencil); font-size: 1.15rem; color: var(--yellow); }
.seg input:checked + span { border-color: var(--yellow); color: var(--on-dark); background: rgba(246,226,26,.07); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.step__next { margin-top: 4px; }
.price-box { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; padding: 14px 16px; border-radius: var(--r); background: rgba(246,226,26,.07); border-left: 3px solid var(--yellow); color: var(--on-dark-2); }
.price-box b { font-family: var(--f-stencil); font-size: 2.2rem; line-height: 1; color: var(--yellow); }
.tool__msg { padding: 14px 16px; border-radius: var(--r); margin-bottom: 18px; font-weight: 500; }
.tool__msg--ok { background: rgba(127,208,168,.14); border-left: 3px solid #7FD0A8; color: var(--on-dark); }
.tool__msg--err { background: rgba(181,67,47,.18); border-left: 3px solid var(--redlead); color: var(--on-dark); }

/* live preview: an A3 sheet between two rollers */
.preview { position: relative; width: min(100%, calc((100vh - var(--head-h) - 262px) * .707 + 20px), 520px); margin-inline: auto; padding: 14px 0; }
.preview__roll { position: absolute; left: -3%; right: -3%; height: 22px; border-radius: 11px; background: linear-gradient(180deg, #CFC6AE, #F4EEDF 40%, #B3A98F); box-shadow: 0 8px 18px rgba(0,0,0,.45); z-index: 3; }
.preview__roll--top { top: 3px; }
.preview__roll--bot { bottom: 3px; }
.sheet { position: relative; aspect-ratio: 1 / 1.414; background: #F3EEE1; background-image: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(140,120,80,.16)), linear-gradient(rgba(0,0,0,.015) 1px, transparent 1px); background-size: 100% 100%, 100% 4px; border-radius: 2px; box-shadow: 0 30px 60px rgba(0,0,0,.5); padding: 7% 7% 5%; display: flex; flex-direction: column; gap: 4%; color: #1E3346; overflow: hidden; container-type: inline-size; }
.sheet__title { font-family: var(--f-display); font-weight: 600; font-size: 6.4cqw; line-height: 1.1; text-align: center; color: #1E3346; min-height: 1.1em; overflow-wrap: anywhere; }
.sheet__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5%; flex: 1 1 auto; min-height: 0; }
.sheet__story { font-family: var(--f-display); font-size: 3.15cqw; line-height: 1.45; color: #233A4E; margin: 0; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
.sheet__photo { position: relative; aspect-ratio: 4 / 5; background: #E2DCCB; border: 1px solid rgba(30,51,70,.25); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6%; color: rgba(30,51,70,.6); font-size: 2.8cqw; }
.sheet__photo svg { width: 55%; fill: rgba(30,51,70,.25); }
.sheet__ship { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5%; align-items: center; }
.sheet__shipimg { aspect-ratio: 4 / 3; overflow: hidden; background: #DDD6C4; filter: sepia(.25) saturate(.8); }
.sheet__shipimg img { width: 100%; height: 100%; object-fit: cover; }
.sheet__shipinfo { display: grid; gap: 1.2cqw; font-family: var(--f-display); font-size: 3.1cqw; color: #233A4E; }
.sheet__shipinfo b { font-size: 4.6cqw; line-height: 1.15; color: #1E3346; overflow-wrap: anywhere; }
.sheet__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 4%; font-family: var(--f-display); font-style: italic; font-size: 2.9cqw; color: rgba(30,51,70,.75); }
.sheet__foot img { width: 13%; height: auto; flex: none; }
.preview__note { margin-top: 18px; text-align: center; font-size: .92rem; color: var(--on-dark-2); }
.sheet .is-flash { animation: flash .6s var(--ease); }
@keyframes flash { from { background: rgba(246,226,26,.5); } to { background: transparent; } }
@media (max-width: 980px) {
  .tool__grid { grid-template-columns: 1fr; }
  .preview { width: min(100%, 440px); }
  .steps button { font-size: .85rem; padding: 6px; flex-direction: column; align-items: flex-start; gap: 0; }
}
@media (max-width: 560px) { .field-row, .seg { grid-template-columns: 1fr; } }

/* how it's made */
.how { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); padding-top: 50px; }
.how__line { position: absolute; left: 0; right: 0; top: 0; height: 40px; width: 100%; }
.how__line path { fill: none; stroke: var(--green); stroke-width: 2; }
.how__step { position: relative; padding: 26px 22px 24px; background: #fff; border-radius: var(--r); box-shadow: 0 1px 0 var(--line-light), 0 18px 40px rgba(13,24,33,.07); }
.how__n { position: absolute; top: -26px; left: 22px; width: 52px; height: 52px; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 1.8rem; border-radius: var(--r); }
.how__step .h3 { margin: 18px 0 10px; }
.how__step p { color: var(--on-light-2); }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; gap: 44px; } .how__line { display: none; } }

/* examples */
.ex-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.ex-quote { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); font: italic 500 1.2rem/1.5 var(--f-display); color: var(--on-dark); }
.ex-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; perspective: 1400px; }
.ex-card { margin: 0; }
.ex-card img { width: 100%; height: auto; max-height: min(64vh, 560px); object-fit: contain; border-radius: 2px; box-shadow: 0 24px 50px rgba(0,0,0,.5); transition: transform .5s var(--ease); }
.ex-card:hover img { transform: translateY(-6px) rotate(-1deg); }
.ex-card figcaption { margin-top: 12px; font-size: .92rem; color: var(--on-dark-2); padding-left: 12px; border-left: 2px solid var(--yellow); }
@media (max-width: 900px) { .ex-grid { grid-template-columns: 1fr; } }

/* shipbuilders */
.builders__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.builders__photo .frame__img { aspect-ratio: 1746 / 1082; }
.ticks { display: grid; gap: 10px; margin: 6px 0 20px; }
.ticks li { position: relative; padding-left: 30px; color: var(--on-dark); }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 16px; height: 2px; background: var(--yellow); }
@media (max-width: 900px) { .builders__grid { grid-template-columns: 1fr; } }

/* questions */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__item h3 { margin: 0; font: inherit; }
.faq__item button { width: 100%; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; background: none; border: 0; text-align: left; font: 600 clamp(1.1rem, 1.4vw, 1.3rem)/1.3 var(--f-display); color: var(--on-light); cursor: pointer; }
.faq__item button span { position: relative; width: 18px; height: 18px; flex: none; }
.faq__item button span::before, .faq__item button span::after { content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--green); transition: transform .35s var(--ease); }
.faq__item button span::after { transform: rotate(90deg); }
.faq__item button[aria-expanded="true"] span::after { transform: rotate(0deg); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 0 18px; color: var(--on-light-2); margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-photo { margin-top: 34px; width: min(100%, 300px); } .faq-photo .frame__img { aspect-ratio: 3 / 4; max-height: min(46vh, 400px); }
