function Shipping() {
  const { t, L } = useT();
  const s = t.shippingPage;
  const cartonProducts = window.PRODUCTS.filter((p) => p.carton);

  return (
    <main>
      <PageHead
        crumbs={[{ label: t.nav.home, href: "/" }, { label: t.nav.shipping }]}
        title={s.title}
        sub={s.lead}
      />

      <section className="section" style={{ paddingBottom: "clamp(34px,4vw,52px)" }}>
        <div className="wrap">
          <Reveal className="section-head">
            <div className="section-head__txt">
              <div className="eyebrow">Indonesia · ACFTA</div>
              <h2 className="h2">{s.marketTitle}</h2>
            </div>
            <p className="note" style={{ marginTop: 0, maxWidth: "34ch" }}>{s.marketNote}</p>
          </Reveal>
          <div className="market-grid">
            {s.market.map((m, i) => (
              <Reveal className="market-item" key={m.t} delay={i * 60}>
                <span className="mono">{"0" + (i + 1)}</span>
                <h3>{m.t}</h3>
                <p>{m.b}</p>
              </Reveal>
            ))}
          </div>
        </div>
      </section>

      <section className="section" style={{ paddingTop: 0, paddingBottom: "clamp(40px,5vw,64px)" }}>
        <div className="wrap">
          <Reveal>
            <div className="eyebrow">{t.process.eyebrow}</div>
            <h2 className="h2" style={{ marginTop: 16 }}>{s.incotermsTitle}</h2>
          </Reveal>
          <div className="terms">
            {s.incoterms.map((x, i) => (
              <Reveal className="term" key={x.code} delay={i * 60}>
                <div className="term__code">{x.code}</div>
                <h3>{x.title}</h3>
                <p>{x.body}</p>
              </Reveal>
            ))}
          </div>
        </div>
      </section>

      <section className="section section--sand">
        <div className="wrap">
          <Reveal className="section-head">
            <div className="section-head__txt">
              <div className="eyebrow">{t.product.packing}</div>
              <h2 className="h2">{s.payTitle}</h2>
              <p className="lede">{s.payNote}</p>
            </div>
          </Reveal>
          <div className="pay">
            {s.pay.map((x, i) => (
              <Reveal className="pay__step" key={x.t} delay={i * 60}>
                <b>{"0" + (i + 1)}</b>
                <h3>{x.t}</h3>
                <p>{x.b}</p>
              </Reveal>
            ))}
          </div>
        </div>
      </section>

      <section className="section">
        <div className="wrap">
          <Reveal className="section-head">
            <div className="section-head__txt">
              <div className="eyebrow">FOB · CIF · Door</div>
              <h2 className="h2">{s.routesTitle}</h2>
            </div>
            <p className="note" style={{ marginTop: 0, maxWidth: "34ch" }}>{s.routesNote}</p>
          </Reveal>
          <table className="table">
            <thead>
              <tr>{s.routesHead.map((h) => <th key={h}>{h}</th>)}</tr>
            </thead>
            <tbody>
              {s.routes.map((r) => (
                <tr key={r[0]}>
                  <td>{r[0]}</td>
                  <td>{r[1]}</td>
                  <td className="num">{r[2]}</td>
                  <td className="num">{r[3]}</td>
                </tr>
              ))}
            </tbody>
          </table>
        </div>
      </section>

      <section className="section section--sand">
        <div className="wrap split">
          <Reveal>
            <div className="eyebrow">ACFTA · Form E</div>
            <h2 className="h2" style={{ marginTop: 16, fontSize: "clamp(1.8rem,2.8vw,2.5rem)" }}>{s.docsTitle}</h2>
            <ul className="doc-list">
              {s.docs.map((d) => <li key={d}>{d}</li>)}
            </ul>
            <p className="note">{s.docsNote}</p>
          </Reveal>
          <Reveal delay={80} className="split__media">
            <span className="arch arch--why">
              <img src="assets/img/img_043.jpg" alt={s.title} />
            </span>
          </Reveal>
        </div>
      </section>

      <section className="section" style={{ paddingBottom: "clamp(34px,4vw,52px)" }}>
        <div className="wrap">
          <Reveal className="section-head">
            <div className="section-head__txt">
              <div className="eyebrow">{t.product.packing}</div>
              <h2 className="h2">{s.cartonTitle}</h2>
              <p className="lede" style={{ fontSize: 15 }}>{s.cartonSub}</p>
            </div>
          </Reveal>
          <table className="table">
            <thead>
              <tr>{s.cartonHead.map((h) => <th key={h}>{h}</th>)}</tr>
            </thead>
            <tbody>
              {cartonProducts.map((p) => (
                <tr key={p.id}>
                  <td><a href={"#/produk/" + p.id} style={{ borderBottom: "1px solid var(--line-strong)" }}>{L(p.name)}</a></td>
                  <td className="num">{p.carton.qty} pcs</td>
                  <td className="num">{p.carton.size}</td>
                  <td className="num">{p.carton.kg} kg</td>
                </tr>
              ))}
            </tbody>
          </table>
          <p className="note">{s.marksNote}</p>
        </div>
      </section>

      <section className="section section--sand" style={{ paddingBlock: "clamp(48px,6vw,86px)" }}>
        <div className="wrap">
          <div className="eyebrow">{s.faqTitle}</div>
          <div className="faq" style={{ marginTop: 22 }}>
            {s.faq.map((f, i) => (
              <details key={f.q} open={i === 0}>
                <summary>{f.q}</summary>
                <p>{f.a}</p>
              </details>
            ))}
          </div>
          <div style={{ marginTop: 40 }}>
            <a className="btn btn--amber" href="#/kontak">{t.nav.quote} <Icons.Arrow /></a>
          </div>
        </div>
      </section>
    </main>
  );
}
window.Shipping = Shipping;
